Fix cached textures being unloaded too soon.

This commit is contained in:
Glenn Maynard
2003-10-09 04:19:11 +00:00
parent f69d0db080
commit 1117b63a09
+1 -1
View File
@@ -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 )