Fix cached textures being unloaded too soon.
This commit is contained in:
@@ -187,7 +187,7 @@ void RageTextureManager::UnloadTexture( RageTexture *t )
|
|||||||
bDeleteThis = true;
|
bDeleteThis = true;
|
||||||
|
|
||||||
/* Delete volatile textures after they've been used at least once. */
|
/* 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;
|
bDeleteThis = true;
|
||||||
|
|
||||||
if( bDeleteThis )
|
if( bDeleteThis )
|
||||||
|
|||||||
Reference in New Issue
Block a user