mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Fix OpenGL ES compilation
This commit is contained in:
@@ -235,8 +235,13 @@ void Texture::setupPixels(int level, const Size& size, uchar* pixels, int channe
|
||||
}
|
||||
|
||||
GLenum internalFormat = GL_RGBA;
|
||||
|
||||
#ifdef OPENGL_ES
|
||||
//TODO
|
||||
#else
|
||||
if(compress)
|
||||
internalFormat = GL_COMPRESSED_RGBA;
|
||||
#endif
|
||||
|
||||
glTexImage2D(GL_TEXTURE_2D, level, internalFormat, size.width(), size.height(), 0, format, GL_UNSIGNED_BYTE, pixels);
|
||||
}
|
||||
|
Reference in New Issue
Block a user