diff --git a/Engine/source/testing/unitTesting.cpp b/Engine/source/testing/unitTesting.cpp index f99efbaca..358358f09 100644 --- a/Engine/source/testing/unitTesting.cpp +++ b/Engine/source/testing/unitTesting.cpp @@ -142,7 +142,7 @@ private: }; // uncomment to debug tests and use the test explorer. -#define TEST_EXPLORER +//#define TEST_EXPLORER #if !defined(TEST_EXPLORER) int main(int argc, char** argv) { diff --git a/Engine/source/windowManager/sdl/sdlSplashScreen.cpp b/Engine/source/windowManager/sdl/sdlSplashScreen.cpp index 5478a83eb..f70ce4df0 100644 --- a/Engine/source/windowManager/sdl/sdlSplashScreen.cpp +++ b/Engine/source/windowManager/sdl/sdlSplashScreen.cpp @@ -97,6 +97,12 @@ bool Platform::displaySplashWindow( String path ) SDL_RenderPresent(gSplashRenderer); + SDL_DestroyTexture(gSplashTexture); + gSplashTexture = nullptr; + + SDL_DestroyRenderer(gSplashRenderer); + gSplashRenderer = nullptr; + } return true;