]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
we probably don't need to call SDL_GL_LoadLibrary on Maemo...
[xonotic/darkplaces.git] / vid_sdl.c
index 9af5f2c30af66a77b43792f622d553d5c16120ea..5eba5d05631bce31836ffd2a5c51d6b1d3b64dd6 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -2045,6 +2045,7 @@ qboolean VID_InitModeGL(viddef_mode_t *mode)
        notfirstvideomode = true;
 #endif
 
+#ifndef USE_GLES2
        // SDL usually knows best
        drivername = NULL;
 
@@ -2057,6 +2058,7 @@ qboolean VID_InitModeGL(viddef_mode_t *mode)
                Con_Printf("Unable to load GL driver \"%s\": %s\n", drivername, SDL_GetError());
                return false;
        }
+#endif
 
 #ifdef __IPHONEOS__
        // mobile platforms are always fullscreen, we'll get the resolution after opening the window