Browse Source

Merge pull request #529 from Azaezel/alpha40/splashscreenNixFix

get the splash screen on linux to stop corrupting the main window
Brian Roberts 4 years ago
parent
commit
0be2086e0f
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Engine/source/windowManager/sdl/sdlSplashScreen.cpp

+ 7 - 0
Engine/source/windowManager/sdl/sdlSplashScreen.cpp

@@ -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;