Skip to content

Commit

Permalink
ref_gl: fix XASH_GL_STATIC build
Browse files Browse the repository at this point in the history
  • Loading branch information
mittorn committed Oct 13, 2023
1 parent 911a7ee commit 20a4e23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ref/gl/gl_opengl.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,12 @@ void GL_InitExtensionsGLES( void )
break;
case GL_ARB_MULTITEXTURE:
if(!GL_CheckExtension( "multitexture", multitexturefuncs, "gl_arb_multitexture", GL_ARB_MULTITEXTURE, 1.0) && glConfig.wrapper == GLES_WRAPPER_NONE )
#ifndef XASH_GL_STATIC
if( !GL_CheckExtension( "multitexture_es1", multitexturefuncs_es, "gl_arb_multitexture", GL_ARB_MULTITEXTURE, 1.0 ) )
if( !GL_CheckExtension( "multitexture_es2", multitexturefuncs_es2, "gl_arb_multitexture", GL_ARB_MULTITEXTURE, 2.0 ) )
#else
break;
#endif
//GL_SetExtension( extid, true ); // required to be supported by wrapper

pglGetIntegerv( GL_MAX_TEXTURE_UNITS_ARB, &glConfig.max_texture_units );
Expand Down

0 comments on commit 20a4e23

Please sign in to comment.