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 8763 a8ef3ac69e3d
parent 8762 4b7d26162a2e
child 8764 3d5ef7548688
Fixes #2519, clear error if using the default library path for EGL succeeds.
src/video/SDL_egl.c
--- a/src/video/SDL_egl.c	Sat May 10 15:57:09 2014 -0300
+++ b/src/video/SDL_egl.c	Sat May 10 16:13:22 2014 -0300
@@ -201,6 +201,7 @@
         if (dll_handle == NULL) {
             return SDL_SetError("Could not load EGL library");
         }
+        SDL_ClearError();
     }
 
     _this->egl_data->dll_handle = dll_handle;