This commit is contained in:
parent
5eddd7d792
commit
545a3d1304
19 changed files with 678 additions and 339 deletions
|
@ -40,3 +40,17 @@ char Filename[256];
|
|||
return(Count);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CTexCache::Purge()
|
||||
{
|
||||
int ListSize=TexList.size();
|
||||
|
||||
TRACE1("Purging %i textures\n",ListSize);
|
||||
|
||||
for (int i=0; i<ListSize; i++)
|
||||
{
|
||||
glDeleteTextures(1,&TexList[i].TexID);
|
||||
}
|
||||
|
||||
TexList.clear();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue