don't segfault when hidding the splashscreen

This commit is contained in:
Sébastien Noel 2023-05-08 10:17:51 +02:00
parent 7613c03331
commit c4c6cc95e3

View File

@ -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)