Test code for scaling and reading the OpenGL backbuffer to CPU memory