GLES Compile fix
This commit is contained in:
parent
8c7b097550
commit
d577514c22
1 changed files with 2 additions and 0 deletions
|
@ -1049,7 +1049,9 @@ static void MakeTextures2(CGraphic *g, GLuint texture, CUnitColors *colors,
|
|||
|
||||
GLint internalformat = GL_RGBA;
|
||||
if (GLTextureCompressionSupported && UseGLTextureCompression) {
|
||||
#ifndef USE_GLES
|
||||
internalformat = GL_COMPRESSED_RGBA;
|
||||
#endif
|
||||
}
|
||||
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, internalformat, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, tex);
|
||||
|
|
Loading…
Add table
Reference in a new issue