Rename envvar to overwrite X11 EGL library name.
authorSam Lantinga <slouken@libsdl.org>
Wed, 18 Jul 2012 15:01:41 -0700
changeset 6368 fcbbd0e2da5e
parent 6367 3c1253baeaec
child 6369 a92fbd27127b
Rename envvar to overwrite X11 EGL library name. We cannot use SDL_VIDEO_GL_DRIVER for both EGL and GLES1/2, so rename the envvar for EGL to SDL_VIDEO_EGL_DRIVER and keep SDL_VIDEO_GL_DRIVER for GLES1/2. Contributed by Andre Heider
src/video/x11/SDL_x11opengles.c
--- a/src/video/x11/SDL_x11opengles.c	Wed Jul 18 14:48:32 2012 -0700
+++ b/src/video/x11/SDL_x11opengles.c	Wed Jul 18 15:01:41 2012 -0700
@@ -115,7 +115,7 @@
     if ((dlsym(handle, "eglChooseConfig") == NULL) && (path == NULL)) {
 
         dlclose(handle);
-        path = getenv("SDL_VIDEO_GL_DRIVER");
+        path = getenv("SDL_VIDEO_EGL_DRIVER");
         if (path == NULL) {
             path = DEFAULT_EGL;
         }