mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 02:20:25 +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