mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-24 02:40:41 +01:00
ref_gl: fix glConfig.max_texture_units when GL_MAX_TEXTURE_UNITS_ARB query not supported
This commit is contained in:
parent
da11da97ad
commit
34463dcddc
@ -1 +1 @@
|
||||
Subproject commit 4529654a3f0c1cc665d5e25a8b509eaab74b7e61
|
||||
Subproject commit dd0b3fa6b98b36d9ebfed2579f0fb1a04606d16f
|
@ -541,8 +541,11 @@ void GL_InitExtensionsGLES( void )
|
||||
GL_SetExtension( extid, true ); // required to be supported by wrapper
|
||||
|
||||
pglGetIntegerv( GL_MAX_TEXTURE_UNITS_ARB, &glConfig.max_texture_units );
|
||||
if( glConfig.max_texture_units == 1 )
|
||||
if( glConfig.max_texture_units <= 1 )
|
||||
{
|
||||
GL_SetExtension( extid, false );
|
||||
glConfig.max_texture_units = 1;
|
||||
}
|
||||
|
||||
glConfig.max_texture_coords = glConfig.max_teximage_units = glConfig.max_texture_units;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user