mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Don't crash in WIN_GL_InitExtensions() if the OpenGL library couldn't be loaded
This commit is contained in:
parent
a5ce57bc3d
commit
3e3570dff7
@ -334,6 +334,10 @@ WIN_GL_InitExtensions(_THIS)
|
|||||||
HGLRC hglrc;
|
HGLRC hglrc;
|
||||||
PIXELFORMATDESCRIPTOR pfd;
|
PIXELFORMATDESCRIPTOR pfd;
|
||||||
|
|
||||||
|
if (!_this->gl_data) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
hwnd =
|
hwnd =
|
||||||
CreateWindow(SDL_Appname, SDL_Appname, (WS_POPUP | WS_DISABLED), 0, 0,
|
CreateWindow(SDL_Appname, SDL_Appname, (WS_POPUP | WS_DISABLED), 0, 0,
|
||||||
10, 10, NULL, NULL, SDL_Instance, NULL);
|
10, 10, NULL, NULL, SDL_Instance, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user