From 90ff7f24b38774c022ccdbff92fd2e3d69ba23b3 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 29 May 2019 18:41:43 +0300 Subject: [PATCH] sdl: vid: fix building with older SDL2 --- engine/platform/sdl/vid_sdl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/platform/sdl/vid_sdl.c b/engine/platform/sdl/vid_sdl.c index 3dcf393f..427a3e8e 100644 --- a/engine/platform/sdl/vid_sdl.c +++ b/engine/platform/sdl/vid_sdl.c @@ -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;