Skip to content
Permalink
Browse files

Don't crash in WIN_GL_InitExtensions() if the OpenGL library couldn't…

… be loaded
  • Loading branch information
slouken committed Apr 23, 2014
1 parent a5ce57b commit 3e3570dff73a7d465a27f4c433621c84e4bb4e43
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/video/windows/SDL_windowsopengl.c
@@ -334,6 +334,10 @@ WIN_GL_InitExtensions(_THIS)
HGLRC hglrc;
PIXELFORMATDESCRIPTOR pfd;

if (!_this->gl_data) {
return;
}

hwnd =
CreateWindow(SDL_Appname, SDL_Appname, (WS_POPUP | WS_DISABLED), 0, 0,
10, 10, NULL, NULL, SDL_Instance, NULL);

0 comments on commit 3e3570d

Please sign in to comment.