fix for mutex deadlock in ClearPipelineStateCache after recent changes

This commit is contained in:
Turánszki János
2026-02-07 14:44:40 +01:00
parent 5226f07cf6
commit eacf5b781d
2 changed files with 0 additions and 6 deletions
-3
View File
@@ -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
-3
View File
@@ -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)
{