MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ReuseMemory

Method ReuseMemory

engine/PoseidonGL33/TextureGL33_Loading.cpp:311–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 }
310 return -1;
311}
312
313void TextureGL33::MemoryReleased()
314{
315 if (_cache)
316 {
317 _cache->Delete();
318 delete _cache;
319 _cache = nullptr;
320 }
321 _levelLoaded = _nMipmaps;
322}

Callers 1

ReuseMethod · 0.80

Calls 2

GetTextureMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected