Browse Source

missed define

marauder2k7 2 years ago
parent
commit
f2292a6a1f

+ 1 - 1
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)
 {

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