From f2292a6a1f5611a10f62b813325db415e4615001 Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Tue, 25 Jul 2023 13:30:53 +0100 Subject: [PATCH] missed define --- Engine/source/testing/unitTesting.cpp | 2 +- Engine/source/windowManager/sdl/sdlSplashScreen.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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;