From 7a3d8bd0e561c9db2aa61ab380189e1e55bd5b16 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 28 Jul 2021 09:50:34 +0300 Subject: [PATCH] - fixed crash after fatal error in SDL backend https://forum.zdoom.org/viewtopic.php?t=72885 --- src/common/platform/posix/sdl/i_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/platform/posix/sdl/i_system.cpp b/src/common/platform/posix/sdl/i_system.cpp index b2f0d84360..03b96b8c3e 100644 --- a/src/common/platform/posix/sdl/i_system.cpp +++ b/src/common/platform/posix/sdl/i_system.cpp @@ -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)