MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / BeforeExit

Method BeforeExit

Source/Engine/Terrain/TerrainManager.cpp:239–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void TerrainManagerService::BeforeExit()
240{
241 // Cleanup data
242 for (auto i = Lookup.Begin(); i.IsNotEnd(); ++i)
243 {
244 auto v = i->Value;
245 v->VertexBuffer->ReleaseGPU();
246 Delete(v->VertexBuffer);
247 v->IndexBuffer->ReleaseGPU();
248 Delete(v->IndexBuffer);
249 }
250 Pool.Clear();
251 Lookup.Clear();
252 TempData.Resize(0);
253}

Callers

nothing calls this directly

Calls 6

DeleteFunction · 0.85
BeginMethod · 0.45
IsNotEndMethod · 0.45
ReleaseGPUMethod · 0.45
ClearMethod · 0.45
ResizeMethod · 0.45

Tested by

no test coverage detected