From 1ab9f102ab3e3384304e701a8d96ebda4a4fc12e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 6 Nov 2017 22:25:46 -0800 Subject: [PATCH] Vulkan: Fix deadlock on resize. Still needed to set this flag. Didn't notice earlier because creating the fences affected the race condition timing, I think... Improves #10063. --- ext/native/thin3d/VulkanRenderManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/native/thin3d/VulkanRenderManager.cpp b/ext/native/thin3d/VulkanRenderManager.cpp index 1272253a39..e69177c63e 100644 --- a/ext/native/thin3d/VulkanRenderManager.cpp +++ b/ext/native/thin3d/VulkanRenderManager.cpp @@ -224,6 +224,7 @@ void VulkanRenderManager::StopThread(bool shutdown) { if (!shutdown && !frameData.readyForFence) { vkDestroyFence(vulkan_->GetDevice(), frameData.fence, nullptr); frameData.fence = vulkan_->CreateFence(true); + frameData.readyForFence = true; } } } @@ -268,7 +269,6 @@ VulkanRenderManager::~VulkanRenderManager() { queueRunner_.DestroyDeviceObjects(); } -// TODO: Activate this code. void VulkanRenderManager::ThreadFunc() { setCurrentThreadName("RenderMan"); int threadFrame = threadInitFrame_;