src/video/SDL_egl.c
changeset 8105 f74bf1bbe472
parent 8093 b43765095a6f
child 8149 681eb46b8ac4
     1.1 --- a/src/video/SDL_egl.c	Thu Jan 09 13:56:21 2014 -0300
     1.2 +++ b/src/video/SDL_egl.c	Tue Jan 14 21:29:38 2014 -0300
     1.3 @@ -181,8 +181,8 @@
     1.4      if (egl_path != NULL) {
     1.5          dll_handle = SDL_LoadObject(egl_path);
     1.6      }   
     1.7 -    /* Catch the case where the application isn't linked with EGL */
     1.8 -    if ((SDL_LoadFunction(dll_handle, "eglChooseConfig") == NULL) && (egl_path == NULL)) {
     1.9 +    /* Try loading a EGL symbol, if it does not work try the default library paths */
    1.10 +    if (SDL_LoadFunction(dll_handle, "eglChooseConfig") == NULL) {
    1.11          if (dll_handle != NULL) {
    1.12              SDL_UnloadObject(dll_handle);
    1.13          }