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

Method ReleaseSmall

engine/PoseidonGL33/TextureGL33_Loading.cpp:215–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213 int totalSize = TotalSize(levelMin);
214
215 if (!_surface.GetTexture())
216 {
217 bank->ReserveMemory(totalSize);
218
219 if (bank->CreateGPUSurface(_surface, desc, format, totalSize) < 0)
220 {
221 _inUse--;
222 if (_interpolate)
223 _interpolate->_inUse--;
224 return -1;
225 }
226
227 bank->_thisFrameAlloc++;
228 }
229
230 ret = UploadToGPU(_surface, levelMin);
231
232 _inUse--;
233
234 CacheUse(bank->_thisFrameWholeUsed);
235 _levelLoaded = levelMin;
236 }

Callers 2

LoadInterpolatedMethod · 0.80
ForceReloadAllMethod · 0.80

Calls 5

AddReleasedMethod · 0.80
SizeUsedMethod · 0.80
TextBankMethod · 0.45
GetTextureMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected