Browse Source

ref: gl: remove useless calls to glGetString if we're running under GL4ES

pull/2/head
Alibek Omarov 12 months ago
parent
commit
255773b4de
  1. 6
      ref/gl/gl_opengl.c

6
ref/gl/gl_opengl.c

@ -913,13 +913,7 @@ void GL_InitExtensionsBigGL( void )
// gl4es may be used system-wide // gl4es may be used system-wide
if( Q_stristr( glConfig.renderer_string, "gl4es" )) if( Q_stristr( glConfig.renderer_string, "gl4es" ))
{
const char *vendor = (const char *)pglGetString( GL_VENDOR | 0x10000 );
const char *renderer = (const char *)pglGetString( GL_RENDERER | 0x10000 );
const char *version = (const char *)pglGetString( GL_VERSION | 0x10000 );
const char *extensions = (const char *)pglGetString( GL_EXTENSIONS | 0x10000 );
glConfig.wrapper = GLES_WRAPPER_GL4ES; glConfig.wrapper = GLES_WRAPPER_GL4ES;
}
// multitexture // multitexture
glConfig.max_texture_units = glConfig.max_texture_coords = glConfig.max_teximage_units = 1; glConfig.max_texture_units = glConfig.max_texture_coords = glConfig.max_teximage_units = 1;

Loading…
Cancel
Save