Skip to content

Commit

Permalink
Restore the ReadyForFence flag. Some paranoia probably
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 26, 2023
1 parent f2cfbe1 commit 42fcd39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Common/GPU/Vulkan/VulkanRenderManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ bool VulkanRenderManager::CreateBackbuffers() {
return false;
}


VkCommandBuffer cmdInit = GetInitCmd();

if (!queueRunner_.CreateSwapchain(cmdInit)) {
Expand All @@ -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
Expand Down

0 comments on commit 42fcd39

Please sign in to comment.