| 315 | } |
| 316 | |
| 317 | void CDX11SubPicAllocator::ClearCache() |
| 318 | { |
| 319 | // Clear the allocator of any remaining subpics |
| 320 | CAutoLock Lock(&ms_SurfaceQueueLock); |
| 321 | for (auto& pSubPic : m_AllocatedSurfaces) { |
| 322 | pSubPic->m_pAllocator = nullptr; |
| 323 | } |
| 324 | m_AllocatedSurfaces.clear(); |
| 325 | m_FreeSurfaces.clear(); |
| 326 | |
| 327 | m_pOutputShaderResource.Release(); |
| 328 | m_pOutputTexture.Release(); |
| 329 | } |
| 330 | |
| 331 | // ISubPicAllocator |
| 332 |