| 275 | } |
| 276 | |
| 277 | void RenderList::CleanupCache() |
| 278 | { |
| 279 | // Don't call it during rendering (data may be already in use) |
| 280 | ASSERT(GPUDevice::Instance == nullptr || GPUDevice::Instance->CurrentTask == nullptr); |
| 281 | |
| 282 | MemPoolLocker.Lock(); |
| 283 | FreeRenderList.ClearDelete(); |
| 284 | for (auto& e : MemPool) |
| 285 | Platform::Free(e.First); |
| 286 | MemPool.Clear(); |
| 287 | MemPoolLocker.Unlock(); |
| 288 | } |
| 289 | |
| 290 | RenderList::IExtension::IExtension() |
| 291 | { |
nothing calls this directly
no test coverage detected