Windows: Fixed crash if initialization of EGL failed but was tried again later.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 21 Jun 2015 19:37:37 +0200
changeset 9773dad226bc43a5
parent 9772 ef27c10db4bf
child 9774 3478d2a45b31
Windows: Fixed crash if initialization of EGL failed but was tried again later.
src/video/windows/SDL_windowsopengles.c
     1.1 --- a/src/video/windows/SDL_windowsopengles.c	Sun Jun 21 19:36:35 2015 +0200
     1.2 +++ b/src/video/windows/SDL_windowsopengles.c	Sun Jun 21 19:37:37 2015 +0200
     1.3 @@ -111,6 +111,7 @@
     1.4  
     1.5      if (_this->egl_data == NULL) {
     1.6          if (SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY) < 0) {
     1.7 +            SDL_EGL_UnloadLibrary(_this);
     1.8              return -1;
     1.9          }
    1.10      }