- fix Queue is signaling semaphore that has not been waited on by any queue

This commit is contained in:
Magnus Norddahl 2019-04-20 16:35:26 +02:00
parent d1e4b86b9e
commit 401a4944b4

View file

@ -217,7 +217,9 @@ void VulkanFrameBuffer::FlushCommands(VulkanCommandBuffer **commands, size_t cou
submit.addSignal(mRenderFinishedSemaphore.get()); submit.addSignal(mRenderFinishedSemaphore.get());
} }
submit.addSignal(mSubmitSemaphore[currentIndex].get()); if (!finish)
submit.addSignal(mSubmitSemaphore[currentIndex].get());
submit.execute(device, device->graphicsQueue, mSubmitFence[currentIndex].get()); submit.execute(device, device->graphicsQueue, mSubmitFence[currentIndex].get());
mNextSubmit++; mNextSubmit++;
} }