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:
parent
aa816459ab
commit
b29ba3d6cf
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue