Skip to content

Commit

Permalink
- do not signal mRenderFinishedSemaphore if the submitted commands ar…
Browse files Browse the repository at this point in the history
…en't about to be presented
  • Loading branch information
dpjudas committed Mar 22, 2019
1 parent 4d768e5 commit d03839d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rendering/vulkan/system/vk_framebuffer.cpp
Expand Up @@ -249,7 +249,7 @@ void VulkanFrameBuffer::SubmitCommands(bool finish)
submitInfo.pWaitDstStageMask = waitStages;
submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = &mDrawCommands->buffer;
submitInfo.signalSemaphoreCount = 1;
submitInfo.signalSemaphoreCount = finish ? 1 : 0;
submitInfo.pSignalSemaphores = &mRenderFinishedSemaphore->semaphore;
result = vkQueueSubmit(device->graphicsQueue, 1, &submitInfo, mRenderFinishedFence->fence);
if (result < VK_SUCCESS)
Expand All @@ -267,7 +267,7 @@ void VulkanFrameBuffer::SubmitCommands(bool finish)
submitInfo.pWaitDstStageMask = waitStages;
submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = &mDrawCommands->buffer;
submitInfo.signalSemaphoreCount = 1;
submitInfo.signalSemaphoreCount = finish ? 1 : 0;
submitInfo.pSignalSemaphores = &mRenderFinishedSemaphore->semaphore;
VkResult result = vkQueueSubmit(device->graphicsQueue, 1, &submitInfo, mRenderFinishedFence->fence);
if (result < VK_SUCCESS)
Expand Down

0 comments on commit d03839d

Please sign in to comment.