Rename envvar to overwrite X11 EGL library name.
authorSam Lantinga <slouken@libsdl.org>
Wed, 18 Jul 2012 15:01:41 -0700
changeset 6368fcbbd0e2da5e
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
     1.1 --- a/src/video/x11/SDL_x11opengles.c	Wed Jul 18 14:48:32 2012 -0700
     1.2 +++ b/src/video/x11/SDL_x11opengles.c	Wed Jul 18 15:01:41 2012 -0700
     1.3 @@ -115,7 +115,7 @@
     1.4      if ((dlsym(handle, "eglChooseConfig") == NULL) && (path == NULL)) {
     1.5  
     1.6          dlclose(handle);
     1.7 -        path = getenv("SDL_VIDEO_GL_DRIVER");
     1.8 +        path = getenv("SDL_VIDEO_EGL_DRIVER");
     1.9          if (path == NULL) {
    1.10              path = DEFAULT_EGL;
    1.11          }