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

This commit is contained in:
Sam Lantinga 2014-04-23 13:47:57 -07:00
parent a5ce57bc3d
commit 3e3570dff7

View file

@ -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);