mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-11-15 06:27:49 +01:00
sdl: vid: fix building with older SDL2
This commit is contained in:
parent
b9a2f58e23
commit
90ff7f24b3
@ -718,8 +718,10 @@ int GL_SetAttribute( int attr, int val )
|
||||
switch( attr )
|
||||
{
|
||||
case REF_GL_CONTEXT_PROFILE_MASK:
|
||||
#ifdef SDL_HINT_OPENGL_ES_DRIVER
|
||||
if( val == REF_GL_CONTEXT_PROFILE_ES )
|
||||
SDL_SetHint( SDL_HINT_OPENGL_ES_DRIVER, "1" );
|
||||
#endif // SDL_HINT_OPENGL_ES_DRIVER
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user