mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-21 18:10:26 +01:00
Merge pull request #69 from twolife/splashscreen
don't segfault when hidding the splashscreen
This commit is contained in:
commit
cb0ad7a57f
|
@ -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