MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ~TextBankGL33

Method ~TextBankGL33

engine/PoseidonGL33/TextureBankGL33_Core.cpp:77–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77TextBankGL33::~TextBankGL33()
78{
79 UnlockAllTextures();
80 DeleteAllAnimated();
81 _texture.Compact();
82 PoseidonAssert(_texture.Size() == 0);
83 _texture.Clear();
84 _detail.Free();
85 _waterBump.Free();
86 _specular.Free();
87 _grass.Free();
88
89 for (int i = 0; i < _freeTextures.Size(); i++)
90 {
91 _freeTextures[i].Free(true);
92 }
93 _freeTextures.Clear();
94}
95
96void TextBankGL33::Compact()
97{

Callers

nothing calls this directly

Calls 4

CompactMethod · 0.45
SizeMethod · 0.45
ClearMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected