mirror of
https://github.com/yawut/SDL.git
synced 2026-07-19 09:21:40 -05:00
Don't crash in WIN_GL_InitExtensions() if the OpenGL library couldn't be loaded
This commit is contained in:
parent
234ffb32df
commit
e3bb050f60
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user