handle framebuffer set to 0