From 1b701a96d008422b217b4ae8198423f58182f90b Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Sat, 25 May 2024 09:11:41 -0400 Subject: [PATCH] don't call `SDL_DestroyRenderer` or `SDL_Quit` until we get to `gfx_sdl_destroy` --- src/graphic/Fast3D/gfx_sdl2.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/graphic/Fast3D/gfx_sdl2.cpp b/src/graphic/Fast3D/gfx_sdl2.cpp index 3d782ed18..eaa7f4510 100644 --- a/src/graphic/Fast3D/gfx_sdl2.cpp +++ b/src/graphic/Fast3D/gfx_sdl2.cpp @@ -414,8 +414,6 @@ static void gfx_sdl_init(const char* game_name, const char* gfx_api_name, bool s static void gfx_sdl_close(void) { is_running = false; - SDL_DestroyRenderer(renderer); - SDL_Quit(); } static void gfx_sdl_set_fullscreen_changed_callback(void (*on_fullscreen_changed)(bool is_now_fullscreen)) {