get the splash screen on linux to stop corrupting the main window

This commit is contained in:
AzaezelX 2021-08-12 18:13:33 -05:00
parent 9dd9e9fae5
commit 431fb05b6f

View file

@ -96,6 +96,13 @@ bool Platform::displaySplashWindow( String path )
SDL_RenderCopy(gSplashRenderer, gSplashTexture, NULL, NULL);
SDL_RenderPresent(gSplashRenderer);
SDL_DestroyTexture(gSplashTexture);
gSplashTexture = nullptr;
SDL_DestroyRenderer(gSplashRenderer);
gSplashRenderer = nullptr;
}
return true;