Android OpenGL ES Color Byte Order
I'm having the problem that my textu开发者_StackOverflow社区res are rendering incorrect colors and based on this it seems like Android's reading the colors in reverse order.
I tried solving the problem as the reference says but GL_BGR_EXT is not defined in the Android NDK nor is GL_UNSIGNED_SHORT_5_6_5_REV. How can I reverse the color byte order in the Android NDK?
You should do it, swapping the R and B channels of your texture. OpenGL supported that feature, but it was removed in OpenGL ES to make drivers more simple.
精彩评论