MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / DropTextures

Method DropTextures

Source/HLEGraphics/TextureCache.cpp:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void CTextureCache::DropTextures()
109{
110 MutexLock lock(GetDebugMutex());
111
112 for( u32 i {}; i < mTextures.size(); ++i)
113 {
114 delete mTextures[i];
115 }
116 mTextures.clear();
117 for( u32 i {}; i < HASH_TABLE_SIZE; ++i )
118 {
119 mpCacheHashTable[i] = nullptr;
120 }
121}
122
123#ifdef PROFILE_TEXTURE_CACHE
124#define RECORD_CACHE_HIT( a, b ) TextureCacheStat( a, b, mTextures.size() )

Callers 1

UpdateMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected