mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-21 11:01:36 +00:00
Actually read GL_MAX_TEXTURE_SIZE for max size
This commit is contained in:
parent
8a71e7522b
commit
41eef5c7a0
1 changed files with 7 additions and 5 deletions
|
@ -167,18 +167,20 @@ namespace OpenGLESRenderer
|
|||
|
||||
gl_customshader = false;
|
||||
|
||||
#if USE_GLES2
|
||||
GLint maxTextureSize[1];
|
||||
glGetIntegerv(GL_MAX_TEXTURE_SIZE, maxTextureSize);
|
||||
|
||||
gles.max_texturesize = maxTextureSize[0];
|
||||
|
||||
Printf("GL_MAX_TEXTURE_SIZE: %d\n", gles.max_texturesize);
|
||||
|
||||
#if USE_GLES2
|
||||
gles.depthStencilAvailable = CheckExtension("GL_OES_packed_depth_stencil");
|
||||
gles.npotAvailable = CheckExtension("GL_OES_texture_npot");
|
||||
|
||||
gles.max_texturesize = 1024 * 2;
|
||||
#else
|
||||
gles.depthStencilAvailable = true;
|
||||
gles.npotAvailable = true;
|
||||
gles.useMappedBuffers = true;
|
||||
|
||||
gles.max_texturesize = 1024 * 2;
|
||||
#endif
|
||||
|
||||
gles.numlightvectors = (gles.maxlights * LIGHT_VEC4_NUM);
|
||||
|
|
Loading…
Reference in a new issue