mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
Properly abort the program if the SDL window can't be created at all (#1296)
This commit is contained in:
parent
769d60a64f
commit
a531c9c35f
1 changed files with 8 additions and 0 deletions
|
@ -448,6 +448,10 @@ SDLVideo::SDLVideo ()
|
|||
if (Priv::softpolyEnabled)
|
||||
{
|
||||
Priv::CreateWindow(SDL_WINDOW_HIDDEN);
|
||||
if (Priv::window == nullptr)
|
||||
{
|
||||
I_FatalError("Could not create SoftPoly window:\n%s\n",SDL_GetError());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -667,6 +671,10 @@ SystemGLFrameBuffer::SystemGLFrameBuffer(void *hMonitor, bool fullscreen)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (Priv::window == nullptr)
|
||||
{
|
||||
I_FatalError("Could not create OpenGL window:\n%s\n",SDL_GetError());
|
||||
}
|
||||
}
|
||||
|
||||
SystemGLFrameBuffer::~SystemGLFrameBuffer ()
|
||||
|
|
Loading…
Reference in a new issue