mirror of
https://github.com/yawut/SDL.git
synced 2026-08-26 18:55:32 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user