- fixed crash after fatal error in SDL backend

https://forum.zdoom.org/viewtopic.php?t=72885
This commit is contained in:
alexey.lysiuk 2021-07-28 09:50:34 +03:00
parent b5247182f4
commit 7a3d8bd0e5

View file

@ -90,7 +90,7 @@ void Mac_I_FatalError(const char* errortext);
void Unix_I_FatalError(const char* errortext)
{
// Close window or exit fullscreen and release mouse capture
SDL_Quit();
SDL_QuitSubSystem(SDL_INIT_VIDEO);
const char *str;
if((str=getenv("KDE_FULL_SESSION")) && strcmp(str, "true") == 0)