diff --git a/WickedEngine/wiGraphicsDevice_DX12.cpp b/WickedEngine/wiGraphicsDevice_DX12.cpp index f85350725..ba724ddaa 100644 --- a/WickedEngine/wiGraphicsDevice_DX12.cpp +++ b/WickedEngine/wiGraphicsDevice_DX12.cpp @@ -5701,15 +5701,12 @@ std::mutex queue_locker; void GraphicsDevice_DX12::ClearPipelineStateCache() { - allocationhandler->destroylocker.lock(); - pipelines_global.clear(); for (auto& x : commandlists) { x->pipelines_worker.clear(); } - allocationhandler->destroylocker.unlock(); } Texture GraphicsDevice_DX12::GetBackBuffer(const SwapChain* swapchain) const diff --git a/WickedEngine/wiGraphicsDevice_Vulkan.cpp b/WickedEngine/wiGraphicsDevice_Vulkan.cpp index 2b20f27e1..501dc6d47 100644 --- a/WickedEngine/wiGraphicsDevice_Vulkan.cpp +++ b/WickedEngine/wiGraphicsDevice_Vulkan.cpp @@ -6795,8 +6795,6 @@ using namespace vulkan_internal; } void GraphicsDevice_Vulkan::ClearPipelineStateCache() { - allocationhandler->destroylocker.lock(); - layout_locker.lock(); pso_layouts.clear(); layout_locker.unlock(); @@ -6807,7 +6805,6 @@ using namespace vulkan_internal; { x->pipelines_worker.clear(); } - allocationhandler->destroylocker.unlock(); if (pipelineCache != VK_NULL_HANDLE) {