2
0
Эх сурвалжийг харах

Merge pull request #529 from Azaezel/alpha40/splashscreenNixFix

get the splash screen on linux to stop corrupting the main window
Brian Roberts 4 жил өмнө
parent
commit
0be2086e0f

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