engine: platform: sdl: always call SDL_Quit in Platform_Shutdown

This commit is contained in:
Alibek Omarov 2024-12-04 16:14:56 +03:00
parent b030cdb4e3
commit 342d61b283
2 changed files with 2 additions and 3 deletions

View file

@ -119,7 +119,4 @@ void NSwitch_Init( void )
void NSwitch_Shutdown( void ) void NSwitch_Shutdown( void )
{ {
printf( "%s\n", __func__ ); printf( "%s\n", __func__ );
// force deinit everything SDL-related to avoid issues with changing games
if ( SDL_WasInit( 0 ) )
SDL_Quit( );
} }

View file

@ -68,4 +68,6 @@ void SDLash_Init( void )
void SDLash_Shutdown( void ) void SDLash_Shutdown( void )
{ {
SDLash_FreeCursors(); SDLash_FreeCursors();
SDL_Quit();
} }