sdl: vid: fix building with older SDL2

This commit is contained in:
Alibek Omarov 2019-05-29 18:41:43 +03:00 committed by GitHub
parent b9a2f58e23
commit 90ff7f24b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;