Adding hook to nme_gl_read_pixels.