From abe48e3f71dbafb3107a6342557079a802c3d770 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Tue, 17 Jul 2012 20:03:04 +0200 Subject: [PATCH 2/3] 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. --- 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 6b5a8be..3fe2d1c 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; } -- 1.7.10.4