mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- do not signal mRenderFinishedSemaphore if the submitted commands aren't about to be presented
This commit is contained in:
parent
4d768e5a49
commit
d03839dfef
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue