Merge pull request #529 from Azaezel/alpha40/splashscreenNixFix

get the splash screen on linux to stop corrupting the main window
This commit is contained in:
Brian Roberts 2021-08-13 22:20:48 -05:00 committed by GitHub
commit 0be2086e0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;