From 8853df82d05c63a445c99741c24d3dbb21cf660d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 18 Jul 2012 15:01:41 -0700 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11opengles.c b/src/video/x11/SDL_x11opengles.c index 6b5a8bedb..3fe2d1cb3 100755 --- a/src/video/x11/SDL_x11opengles.c +++ b/src/video/x11/SDL_x11opengles.c @@ -115,7 +115,7 @@ X11_GLES_LoadLibrary(_THIS, const char *path) 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; }