Note that lastFramebuffer changes in createFramebuffer.