Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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
  • Loading branch information
slouken committed Jul 18, 2012
1 parent 5010fb4 commit 8853df82d05c63a445c99741c24d3dbb21cf660d
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 8853df8

Please sign in to comment.