Fixed resolution bug in framebuffer rendering.