I tried to bind a bitmap texture. This bitmap is BGR format, and I'm trying to use
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_BGR, GL_UNSIGNED_BYTE, data)
, but during compile, error: 'GL_BGR' undeclared appears.
I checked <GLES2/gl2.h>
and <GLES2/gl2ext.h>
, but there isn't any GL_BGR
. Is there any way to upload BGR format?