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.
This commit is contained in:
Unknown W. Brackets 2017-11-06 22:25:46 -08:00
parent 70c70b1e76
commit 1ab9f102ab

View file

@ -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_;