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

Method UseReleased

engine/PoseidonGL33/TextureBankGL33_Core.cpp:400–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void TextBankGL33::UseReleased(SurfaceInfoGL33& surf, const TextureDescGL33& desc, PacFormat format)
401{
402 int reuse = FindReleased(desc.w, desc.h, desc.nMipmaps, format);
403 if (reuse < 0)
404 return;
405
406 SurfaceInfoGL33& reused = _freeTextures[reuse];
407 surf = reused;
408 reused.Free(false);
409 _freeTextures.Delete(reuse);
410}
411
412void TextBankGL33::Reuse(SurfaceInfoGL33& surf, const TextureDescGL33& desc, PacFormat format)
413{

Callers 2

LoadLevelsMethod · 0.80
LoadSmallMethod · 0.80

Calls 2

FreeMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected