Implementing nme_gl_read_pixels.