mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-25 07:14:50 +01:00
don't segfault when hidding the splashscreen
This commit is contained in:
parent
7613c03331
commit
c4c6cc95e3
|
@ -131,9 +131,9 @@ static SDL_Texture *texture = NULL;
|
|||
|
||||
void HideSplashScreen(void)
|
||||
{
|
||||
if (window) { SDL_DestroyWindow(window); window = NULL; }
|
||||
if (texture) { SDL_DestroyTexture(texture); texture = NULL; }
|
||||
if (renderer) { SDL_DestroyRenderer(renderer); renderer = NULL; }
|
||||
if (window) { SDL_DestroyWindow(window); window = NULL; }
|
||||
}
|
||||
|
||||
void ShowSplashScreen(HINSTANCE hInstance)
|
||||
|
|
Loading…
Reference in New Issue
Block a user