Skip to content

Commit

Permalink
engine: platform: sdl: always call SDL_Quit in Platform_Shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Dec 4, 2024
1 parent b030cdb commit 342d61b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions engine/platform/nswitch/sys_nswitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,4 @@ void NSwitch_Init( void )
void NSwitch_Shutdown( void )
{
printf( "%s\n", __func__ );
// force deinit everything SDL-related to avoid issues with changing games
if ( SDL_WasInit( 0 ) )
SDL_Quit( );
}
2 changes: 2 additions & 0 deletions engine/platform/sdl/sys_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,6 @@ void SDLash_Init( void )
void SDLash_Shutdown( void )
{
SDLash_FreeCursors();

SDL_Quit();
}

0 comments on commit 342d61b

Please sign in to comment.