Explorar o código

Fixes #2519, clear error if using the default library path for EGL succeeds.

Gabriel Jacobo %!s(int64=11) %!d(string=hai) anos
pai
achega
536dd01307
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/video/SDL_egl.c

+ 1 - 0
src/video/SDL_egl.c

@@ -201,6 +201,7 @@ SDL_EGL_LoadLibrary(_THIS, const char *egl_path, NativeDisplayType native_displa
         if (dll_handle == NULL) {
             return SDL_SetError("Could not load EGL library");
         }
+        SDL_ClearError();
     }
 
     _this->egl_data->dll_handle = dll_handle;