diff --git a/libultraship/libultraship/Lib/Fast3D/gfx_glx.cpp b/libultraship/libultraship/Lib/Fast3D/gfx_glx.cpp index 76562b14c..d450558b2 100644 --- a/libultraship/libultraship/Lib/Fast3D/gfx_glx.cpp +++ b/libultraship/libultraship/Lib/Fast3D/gfx_glx.cpp @@ -11,7 +11,6 @@ #include #include #include -#include #include "gfx_window_manager_api.h" #include "gfx_screen_config.h" @@ -441,7 +440,6 @@ static void gfx_glx_handle_events(void) { } } if (xev.type == ClientMessage && (Atom)xev.xclient.data.l[0] == glx.atom_wm_delete_window) { - SDL_Quit(); exit(0); } } diff --git a/libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp b/libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp index 195a66860..6e5caf084 100644 --- a/libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp +++ b/libultraship/libultraship/Lib/Fast3D/gfx_sdl2.cpp @@ -250,7 +250,7 @@ static void gfx_sdl_handle_events(void) { } break; case SDL_QUIT: - SDL_Quit(); + SDL_Quit(); // bandaid fix for linux window closing issue exit(0); } }