Merge pull request #69 from twolife/splashscreen

don't segfault when hidding the splashscreen
This commit is contained in:
ptitSeb 2023-05-08 10:54:08 +02:00 committed by GitHub
commit cb0ad7a57f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)