Skip to content

Commit

Permalink
Make EGL loading more resilient.
Browse files Browse the repository at this point in the history
Lesson learned while trying to run L4D2 under Wayland :)
  • Loading branch information
gabomdq committed Jan 15, 2014
1 parent 272ebb8 commit c0d86b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/SDL_egl.c
Expand Up @@ -181,8 +181,8 @@ SDL_EGL_LoadLibrary(_THIS, const char *egl_path, NativeDisplayType native_displa
if (egl_path != NULL) {
dll_handle = SDL_LoadObject(egl_path);
}
/* Catch the case where the application isn't linked with EGL */
if ((SDL_LoadFunction(dll_handle, "eglChooseConfig") == NULL) && (egl_path == NULL)) {
/* Try loading a EGL symbol, if it does not work try the default library paths */
if (SDL_LoadFunction(dll_handle, "eglChooseConfig") == NULL) {
if (dll_handle != NULL) {
SDL_UnloadObject(dll_handle);
}
Expand Down

0 comments on commit c0d86b9

Please sign in to comment.