Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Rename envvar to overwrite X11 EGL library name.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
slouken committed Jul 18, 2012
1 parent 5010fb4 commit 8853df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11opengles.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8853df8

Please sign in to comment.