engine/material.c
/*	Clears out the specific skin.
*/
Clears out the specific skin.
Clears out the specific skin .
void Material_ClearSkin(Material_t *mMaterial, int iSkin)
{
	unsigned int i;
	MaterialSkin_t *mSkin;
	mSkin = Material_GetSkin(mMaterial, iSkin);
	if (!mSkin)
		Sys_Error("Attempted to clear invalid skin! (%s) (%i)\n", mMaterial->cPath, iSkin);
#ifdef _MSC_VER
#pragma warning(suppress: 6011)
#endif
	for (i = 0; i < mSkin->uiTextures; i++)
		TexMgr_FreeTexture(mSkin->mtTexture[i].gMap);
}
void Material_ClearSkin ( Material_t * mMaterial , int iSkin ) { unsigned int i ; MaterialSkin_t * mSkin ; mSkin = Material_GetSkin ( mMaterial , iSkin ) ; if ( ! mSkin ) Sys_Error ( " \n " , mMaterial -> cPath , iSkin ) ; #ifdef _MSC_VER #pragma  warning(suppress: 6011) #endif for ( i = 0 ; i < mSkin -> uiTextures ; i ++ ) TexMgr_FreeTexture ( mSkin -> mtTexture [ i ] . gMap ) ; }
Clears out the specific skin.
Clears out the specific skin .