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

Method DeleteLastReleased

engine/PoseidonGL33/TextureBankGL33_Core.cpp:385–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385void TextBankGL33::DeleteLastReleased()
386{
387 SurfaceInfoGL33& free = _freeTextures[0];
388 int size = free.SizeUsed();
389 _totalAllocated -= size;
390 _thisFrameAlloc++;
391 free.Free(true);
392 _freeTextures.Delete(0);
393}
394
395void TextBankGL33::AddReleased(SurfaceInfoGL33& surf)
396{

Callers

nothing calls this directly

Calls 3

SizeUsedMethod · 0.80
FreeMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected