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
This commit is contained in:
Sam Lantinga 2012-07-18 15:01:41 -07:00
parent aa816459ab
commit b29ba3d6cf

View file

@ -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;
}