mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix GL_BGRA error on gles 2
This commit is contained in:
parent
a27908a7e8
commit
c4c97c3571
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user