Fixes #2519, clear error if using the default library path for EGL succeeds.
authorGabriel Jacobo <gabomdq@gmail.com>
Sat, 10 May 2014 16:13:22 -0300
changeset 8763a8ef3ac69e3d
parent 8762 4b7d26162a2e
child 8764 3d5ef7548688
Fixes #2519, clear error if using the default library path for EGL succeeds.
src/video/SDL_egl.c
     1.1 --- a/src/video/SDL_egl.c	Sat May 10 15:57:09 2014 -0300
     1.2 +++ b/src/video/SDL_egl.c	Sat May 10 16:13:22 2014 -0300
     1.3 @@ -201,6 +201,7 @@
     1.4          if (dll_handle == NULL) {
     1.5              return SDL_SetError("Could not load EGL library");
     1.6          }
     1.7 +        SDL_ClearError();
     1.8      }
     1.9  
    1.10      _this->egl_data->dll_handle = dll_handle;