summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbriaguya <70942617+briaguya-ai@users.noreply.github.com>2022-05-29 16:45:27 -0400
committerGitHub <noreply@github.com>2022-05-29 16:45:27 -0400
commitdaec428cb3844bdb5261f5ddf47b613cce514d05 (patch)
treed7c9fe5107757c7aba4cc9a15c37488d55cf29db
parent08c161fd13836b34bb3257d8361add14e967eac8 (diff)
call SDL_Quit() before exit(0) (linux window closing issue) (#408)
* use _Exit(0) on linux * use SDL_Quit() instead of _Exit(0) * remove unnecessary call, add bandaid comment Co-authored-by: briaguya <briaguya@alice>
-rw-r--r--libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp b/libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp
index 94c3ef5ca..061e3a8ee 100644
--- a/libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp
+++ b/libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp
@@ -249,6 +249,7 @@ static void gfx_sdl_handle_events(void) {
}
break;
case SDL_QUIT:
+ SDL_Quit(); // bandaid fix for linux window closing issue
exit(0);
}
}