浏览代码

missed define

marauder2k7 2 年之前
父节点
当前提交
f2292a6a1f
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 1 1
      Engine/source/testing/unitTesting.cpp
  2. 6 0
      Engine/source/windowManager/sdl/sdlSplashScreen.cpp

+ 1 - 1
Engine/source/testing/unitTesting.cpp

@@ -142,7 +142,7 @@ private:
 };
 };
 
 
 // uncomment to debug tests and use the test explorer.
 // uncomment to debug tests and use the test explorer.
-#define TEST_EXPLORER
+//#define TEST_EXPLORER
 #if !defined(TEST_EXPLORER)
 #if !defined(TEST_EXPLORER)
 int main(int argc, char** argv)
 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_RenderPresent(gSplashRenderer);
 
 
+      SDL_DestroyTexture(gSplashTexture);
+      gSplashTexture = nullptr;
+
+      SDL_DestroyRenderer(gSplashRenderer);
+      gSplashRenderer = nullptr;
+
    }
    }
 
 
    return true;
    return true;