Ver código fonte

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

AzaezelX 4 anos atrás
pai
commit
431fb05b6f

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

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