Er. Clear the texture cache before loading the new screen.
This commit is contained in:
@@ -359,6 +359,12 @@ void ScreenManager::Update( float fDeltaTime )
|
|||||||
m_ScreensToDelete.insert(m_ScreensToDelete.end(), m_ScreenStack.begin(), m_ScreenStack.end());
|
m_ScreensToDelete.insert(m_ScreensToDelete.end(), m_ScreenStack.begin(), m_ScreenStack.end());
|
||||||
m_ScreenStack.clear();
|
m_ScreenStack.clear();
|
||||||
EmptyDeleteQueue();
|
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();
|
LoadDelayedScreen();
|
||||||
|
|
||||||
/* Ack. We can't Update(0), since we want to skip the *next* update
|
/* Ack. We can't Update(0), since we want to skip the *next* update
|
||||||
|
|||||||
Reference in New Issue
Block a user