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

Method ReleaseAllTextures

engine/PoseidonGL33/TextureBankGL33_Core.cpp:281–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void TextBankGL33::ReleaseAllTextures()
282{
283 LOG_DEBUG(Graphics, "GL33: Allocated before ReleaseAllTextures {}", _totalAllocated);
284 ReserveMemory(_previousUsed, 0);
285 ReserveMemory(_lastFramePartialUsed, 0);
286 ReserveMemory(_lastFrameWholeUsed, 0);
287 ReserveMemory(_thisFramePartialUsed, 0);
288 ReserveMemory(_thisFrameWholeUsed, 0);
289 LOG_DEBUG(Graphics, "GL33: Allocated after ReleaseAllTextures {}", _totalAllocated);
290}
291
292bool TextBankGL33::ReserveMemory(GL33MipCacheRoot& root, int limit)
293{

Callers 2

PreResetMethod · 0.45
ResetForRemountMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected