close_sdl command

This commit is contained in:
Zeno Rogue
2026-09-17 09:37:51 +02:00
parent 4ce42205d9
commit 2c43ef816e
+10
View File
@@ -1318,9 +1318,19 @@ EX void close_window() {
SDL_GL_DestroyContext(s_context), s_have_context = false;
}
if(s_window) SDL_DestroyWindow(s_window), s_window = nullptr;
graphics_on = false;
vid.usingGL = false;
#endif
}
EX void close_sdl() {
close_window();
SDL_Quit();
sdl_on = false;
graphics_on = false;
vid.usingGL = false;
}
EX void apply_screen_settings() {
if(!need_to_apply_screen_settings()) return;
if(!graphics_on) return;