Restore the ReadyForFence flag. Some paranoia probably

This commit is contained in:
Henrik Rydgård 2023-09-26 01:58:15 +02:00
parent f2cfbe1bcf
commit 42fcd399f4

View file

@ -288,7 +288,6 @@ bool VulkanRenderManager::CreateBackbuffers() {
return false;
}
VkCommandBuffer cmdInit = GetInitCmd();
if (!queueRunner_.CreateSwapchain(cmdInit)) {
@ -310,6 +309,11 @@ bool VulkanRenderManager::CreateBackbuffers() {
outOfDateFrames_ = 0;
for (int i = 0; i < vulkan_->GetInflightFrames(); i++) {
auto &frameData = frameData_[i];
frameData.readyForFence = true; // Just in case.
}
// Start the thread(s).
if (HasBackbuffers()) {
run_ = true; // For controlling the compiler thread's exit