mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: platform: sdl: always call SDL_Quit in Platform_Shutdown
This commit is contained in:
@@ -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( );
|
||||
}
|
||||
|
||||
@@ -68,4 +68,6 @@ void SDLash_Init( void )
|
||||
void SDLash_Shutdown( void )
|
||||
{
|
||||
SDLash_FreeCursors();
|
||||
|
||||
SDL_Quit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user