If buffer is equal to last_name, we just need to increase the last name.
If renderbuffer or framebuffer is 0, we do not need to create cached elements