From 401a4944b4e2fb6926c6d7f543c8e0de11adf2e6 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 20 Apr 2019 16:35:26 +0200 Subject: [PATCH] - fix Queue is signaling semaphore that has not been waited on by any queue --- src/rendering/vulkan/system/vk_framebuffer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rendering/vulkan/system/vk_framebuffer.cpp b/src/rendering/vulkan/system/vk_framebuffer.cpp index cff8a446a..54789bbdb 100644 --- a/src/rendering/vulkan/system/vk_framebuffer.cpp +++ b/src/rendering/vulkan/system/vk_framebuffer.cpp @@ -217,7 +217,9 @@ void VulkanFrameBuffer::FlushCommands(VulkanCommandBuffer **commands, size_t cou submit.addSignal(mRenderFinishedSemaphore.get()); } - submit.addSignal(mSubmitSemaphore[currentIndex].get()); + if (!finish) + submit.addSignal(mSubmitSemaphore[currentIndex].get()); + submit.execute(device, device->graphicsQueue, mSubmitFence[currentIndex].get()); mNextSubmit++; }