Skip to content
Permalink
Browse files

Windows: Fixed crash if initialization of EGL failed but was tried ag…

…ain later.
  • Loading branch information
philippwiesemann committed Jun 21, 2015
1 parent 7259068 commit 8cea1b986ee2b88b8a0ed42d012d6f92e4e85777
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/video/windows/SDL_windowsopengles.c
@@ -111,6 +111,7 @@ WIN_GLES_SetupWindow(_THIS, SDL_Window * window)

if (_this->egl_data == NULL) {
if (SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY) < 0) {
SDL_EGL_UnloadLibrary(_this);
return -1;
}
}

0 comments on commit 8cea1b9

Please sign in to comment.