I want to capture screen using Irrlicht with OpenGl ES 1.0 Driver.
Here is my code written in c++
glReadPixels(0, 0, 200, 200, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
Most Android devices work well. But MileStone with Android 2.2.3 got unexpected result.I desire RGBA color format,while MileStone return BGRA color.
At last, I change my code
glReadPixels(0, 0, 200, 200, GL_BGRA, GL_UNSIGNED_BYTE, pixels);
But MileStone return RGBA color.
I have question that why Red and Blue is unexpected? What are the proper reasons?