Skip to content

Commit

Permalink
- fix SubmitCommands bug if it no swapchain image was acquired
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Apr 10, 2019
1 parent 7b06fbe commit 5f70ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/vulkan/system/vk_framebuffer.cpp
Expand Up @@ -225,7 +225,7 @@ void VulkanFrameBuffer::SubmitCommands(bool finish)
{
submit.addWait(VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, mTransferSemaphore.get());
}
if (finish)
if (finish && presentImageIndex != 0xffffffff)
{
submit.addWait(VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, mSwapChainImageAvailableSemaphore.get());
submit.addSignal(mRenderFinishedSemaphore.get());
Expand Down

0 comments on commit 5f70ce2

Please sign in to comment.