2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

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

This commit is contained in:
Alibek Omarov 2023-12-04 02:53:51 +03:00
parent 5b73a788da
commit 255773b4de

View File

@ -913,13 +913,7 @@ void GL_InitExtensionsBigGL( void )
// gl4es may be used system-wide
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;
}
// multitexture
glConfig.max_texture_units = glConfig.max_texture_coords = glConfig.max_teximage_units = 1;