Skip to content

Commit 1b701a9

Browse files
committed
don't call SDL_DestroyRenderer or SDL_Quit until we get to gfx_sdl_destroy
1 parent 0da318c commit 1b701a9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/graphic/Fast3D/gfx_sdl2.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,6 @@ static void gfx_sdl_init(const char* game_name, const char* gfx_api_name, bool s
414414

415415
static void gfx_sdl_close(void) {
416416
is_running = false;
417-
SDL_DestroyRenderer(renderer);
418-
SDL_Quit();
419417
}
420418

421419
static void gfx_sdl_set_fullscreen_changed_callback(void (*on_fullscreen_changed)(bool is_now_fullscreen)) {

0 commit comments

Comments
 (0)