allow UnloadTexture(NULL), like delete NULL

This commit is contained in:
Glenn Maynard
2004-08-21 01:45:02 +00:00
parent a0f162d5a9
commit d2895f9713
+3
View File
@@ -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 );