// GLES will only read GL_RGBA.
unsigned char *temp = new unsigned char[width * height * 4];
glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, temp);
check_error();
// GLES will only read GL_RGBA.
unsigned char *temp = new unsigned char[width * height * 4];
glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, temp);
check_error();