Vulkan submit: If submit-type is FinishFrame, always trigger the fence.

Should fix #19277
This commit is contained in:
Henrik Rydgård 2024-06-19 10:50:41 +02:00
parent cfcca0ed13
commit 2c257e2628

View File

@ -208,10 +208,11 @@ void FrameData::Submit(VulkanContext *vulkan, FrameSubmitType type, FrameDataSha
cmdBufs[numCmdBufs++] = presentCmd; cmdBufs[numCmdBufs++] = presentCmd;
hasPresentCommands = false; hasPresentCommands = false;
}
if (type == FrameSubmitType::FinishFrame) { if (type == FrameSubmitType::FinishFrame) {
fenceToTrigger = fence; _dbg_assert_(!fenceToTrigger);
} fenceToTrigger = fence;
} }
if (!numCmdBufs && fenceToTrigger == VK_NULL_HANDLE) { if (!numCmdBufs && fenceToTrigger == VK_NULL_HANDLE) {