fix GL_BGRA error on gles 2

This commit is contained in:
rdb 2013-03-28 15:41:25 +00:00
parent a27908a7e8
commit c4c97c3571
2 changed files with 1 additions and 2 deletions

View File

@ -85,6 +85,7 @@ typedef char GLchar;
#define GL_TEXTURE_3D GL_TEXTURE_3D_OES
#define GL_MAX_3D_TEXTURE_SIZE GL_MAX_3D_TEXTURE_SIZE_OES
#define GL_SAMPLER_3D GL_SAMPLER_3D_OES
#define GL_BGRA GL_BGRA_EXT
#undef SUPPORT_IMMEDIATE_MODE
#define APIENTRY

View File

@ -4397,11 +4397,9 @@ framebuffer_copy_to_ram(Texture *tex, int z, const DisplayRegion *dr,
GLCAT.spam(false) << "GL_BGR, ";
break;
#endif
#ifndef OPENGLES_2
case GL_BGRA:
GLCAT.spam(false) << "GL_BGRA, ";
break;
#endif
default:
GLCAT.spam(false) << "unknown, ";
break;