allow UnloadTexture(NULL), like delete NULL
This commit is contained in:
@@ -165,6 +165,9 @@ void RageTextureManager::PermanentTexture( RageTextureID ID )
|
||||
|
||||
void RageTextureManager::UnloadTexture( RageTexture *t )
|
||||
{
|
||||
if( t == NULL )
|
||||
return;
|
||||
|
||||
t->m_iRefCount--;
|
||||
ASSERT( t->m_iRefCount >= 0 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user