From efd24b3e8c416d42bcc76b2b1ffc404a1a944198 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 25 Apr 2003 04:16:34 +0000 Subject: [PATCH] Er. Clear the texture cache before loading the new screen. --- stepmania/src/ScreenManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/ScreenManager.cpp b/stepmania/src/ScreenManager.cpp index f8381b6b90..5de105eafc 100644 --- a/stepmania/src/ScreenManager.cpp +++ b/stepmania/src/ScreenManager.cpp @@ -359,6 +359,12 @@ void ScreenManager::Update( float fDeltaTime ) m_ScreensToDelete.insert(m_ScreensToDelete.end(), m_ScreenStack.begin(), m_ScreenStack.end()); m_ScreenStack.clear(); EmptyDeleteQueue(); + + /* This is the purpose of delayed screen loads: clear out the texture cache + * now, while there's (mostly) nothing loaded. */ + TEXTUREMAN->DeleteCachedTextures(); + TEXTUREMAN->DiagnosticOutput(); + LoadDelayedScreen(); /* Ack. We can't Update(0), since we want to skip the *next* update