Browse Source

sdl: vid: fix building with older SDL2

pull/2/head
Alibek Omarov 6 years ago committed by GitHub
parent
commit
90ff7f24b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      engine/platform/sdl/vid_sdl.c

2
engine/platform/sdl/vid_sdl.c

@ -718,8 +718,10 @@ int GL_SetAttribute( int attr, int val )
switch( attr ) switch( attr )
{ {
case REF_GL_CONTEXT_PROFILE_MASK: case REF_GL_CONTEXT_PROFILE_MASK:
#ifdef SDL_HINT_OPENGL_ES_DRIVER
if( val == REF_GL_CONTEXT_PROFILE_ES ) if( val == REF_GL_CONTEXT_PROFILE_ES )
SDL_SetHint( SDL_HINT_OPENGL_ES_DRIVER, "1" ); SDL_SetHint( SDL_HINT_OPENGL_ES_DRIVER, "1" );
#endif // SDL_HINT_OPENGL_ES_DRIVER
break; break;
default: default:
break; break;

Loading…
Cancel
Save