mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2025-03-30 18:50:06 +02: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)
|
void HideSplashScreen(void)
|
||||||
{
|
{
|
||||||
|
if (window) { SDL_DestroyWindow(window); window = NULL; }
|
||||||
if (texture) { SDL_DestroyTexture(texture); texture = NULL; }
|
if (texture) { SDL_DestroyTexture(texture); texture = NULL; }
|
||||||
if (renderer) { SDL_DestroyRenderer(renderer); renderer = NULL; }
|
if (renderer) { SDL_DestroyRenderer(renderer); renderer = NULL; }
|
||||||
if (window) { SDL_DestroyWindow(window); window = NULL; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShowSplashScreen(HINSTANCE hInstance)
|
void ShowSplashScreen(HINSTANCE hInstance)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user