Backed out changeset 30a317c4af6c
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 21 Jun 2015 19:36:35 +0200
changeset 9772 ef27c10db4bf
parent 9771 30a317c4af6c
child 9773 dad226bc43a5
Backed out changeset 30a317c4af6c
src/video/SDL_egl.c
--- a/src/video/SDL_egl.c	Sun Jun 21 17:33:46 2015 +0200
+++ b/src/video/SDL_egl.c	Sun Jun 21 19:36:35 2015 +0200
@@ -72,7 +72,6 @@
 _this->egl_data->NAME = SDL_LoadFunction(_this->egl_data->dll_handle, #NAME); \
 if (!_this->egl_data->NAME) \
 { \
-    SDL_EGL_UnloadLibrary(_this); \
     return SDL_SetError("Could not retrieve EGL function " #NAME); \
 }
     
@@ -220,7 +219,6 @@
     _this->egl_data->egl_dll_handle = egl_dll_handle;
 
     if (egl_dll_handle == NULL) {
-        SDL_EGL_UnloadLibrary(_this);
         return SDL_SetError("Could not initialize OpenGL / GLES library");
     }
 
@@ -242,7 +240,6 @@
             if (dll_handle != NULL) {
                 SDL_UnloadObject(dll_handle);
             }
-            SDL_EGL_UnloadLibrary(_this);
             return SDL_SetError("Could not load EGL library");
         }
         SDL_ClearError();
@@ -272,12 +269,10 @@
 #if !defined(__WINRT__)
     _this->egl_data->egl_display = _this->egl_data->eglGetDisplay(native_display);
     if (!_this->egl_data->egl_display) {
-        SDL_EGL_UnloadLibrary(_this);
         return SDL_SetError("Could not get EGL display");
     }
     
     if (_this->egl_data->eglInitialize(_this->egl_data->egl_display, NULL, NULL) != EGL_TRUE) {
-        SDL_EGL_UnloadLibrary(_this);
         return SDL_SetError("Could not initialize EGL");
     }
 #endif