Permalink
Browse files

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.
  • Loading branch information...
unknownbrackets committed Nov 7, 2017
1 parent 70c70b1 commit 1ab9f102ab3e3384304e701a8d96ebda4a4fc12e
Showing with 1 addition and 1 deletion.
  1. +1 −1 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_;

0 comments on commit 1ab9f10

Please sign in to comment.