From 1117b63a0920749ac6853d7714a5e840737b8b9f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 9 Oct 2003 04:19:11 +0000 Subject: [PATCH] Fix cached textures being unloaded too soon. --- stepmania/src/RageTextureManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageTextureManager.cpp b/stepmania/src/RageTextureManager.cpp index e21de1f5bf..85014b9b9a 100644 --- a/stepmania/src/RageTextureManager.cpp +++ b/stepmania/src/RageTextureManager.cpp @@ -187,7 +187,7 @@ void RageTextureManager::UnloadTexture( RageTexture *t ) bDeleteThis = true; /* Delete volatile textures after they've been used at least once. */ - if( t->m_bWasUsed ) + if( t->m_Policy == RageTexture::TEX_VOLATILE && t->m_bWasUsed ) bDeleteThis = true; if( bDeleteThis )