Fix framebuffer binding optimization.
Correctly bind framebuffer for readPixels.