Hi.
Usually, I use render-to-texture technique to process the image.
However, recently, I need to read the contents to the system memory.
So, I tried to use glReadPixels as follows:
GLubyte pixels[256] = { 0, 0, 0, 0 };
GL_CHECK( glReadPixels(100, 100, 2,…