Skip to content

Commit

Permalink
don't call SDL_DestroyRenderer or SDL_Quit until we get to `gfx_s…
Browse files Browse the repository at this point in the history
…dl_destroy` (Kenix3#603)
  • Loading branch information
briaguya-ai authored May 26, 2024
1 parent 6b8a8d8 commit 0c4b491
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/graphic/Fast3D/gfx_sdl2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 0c4b491

Please sign in to comment.