mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +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.pWaitDstStageMask = waitStages;
|
||||||
submitInfo.commandBufferCount = 1;
|
submitInfo.commandBufferCount = 1;
|
||||||
submitInfo.pCommandBuffers = &mDrawCommands->buffer;
|
submitInfo.pCommandBuffers = &mDrawCommands->buffer;
|
||||||
submitInfo.signalSemaphoreCount = 1;
|
submitInfo.signalSemaphoreCount = finish ? 1 : 0;
|
||||||
submitInfo.pSignalSemaphores = &mRenderFinishedSemaphore->semaphore;
|
submitInfo.pSignalSemaphores = &mRenderFinishedSemaphore->semaphore;
|
||||||
result = vkQueueSubmit(device->graphicsQueue, 1, &submitInfo, mRenderFinishedFence->fence);
|
result = vkQueueSubmit(device->graphicsQueue, 1, &submitInfo, mRenderFinishedFence->fence);
|
||||||
if (result < VK_SUCCESS)
|
if (result < VK_SUCCESS)
|
||||||
|
@ -267,7 +267,7 @@ void VulkanFrameBuffer::SubmitCommands(bool finish)
|
||||||
submitInfo.pWaitDstStageMask = waitStages;
|
submitInfo.pWaitDstStageMask = waitStages;
|
||||||
submitInfo.commandBufferCount = 1;
|
submitInfo.commandBufferCount = 1;
|
||||||
submitInfo.pCommandBuffers = &mDrawCommands->buffer;
|
submitInfo.pCommandBuffers = &mDrawCommands->buffer;
|
||||||
submitInfo.signalSemaphoreCount = 1;
|
submitInfo.signalSemaphoreCount = finish ? 1 : 0;
|
||||||
submitInfo.pSignalSemaphores = &mRenderFinishedSemaphore->semaphore;
|
submitInfo.pSignalSemaphores = &mRenderFinishedSemaphore->semaphore;
|
||||||
VkResult result = vkQueueSubmit(device->graphicsQueue, 1, &submitInfo, mRenderFinishedFence->fence);
|
VkResult result = vkQueueSubmit(device->graphicsQueue, 1, &submitInfo, mRenderFinishedFence->fence);
|
||||||
if (result < VK_SUCCESS)
|
if (result < VK_SUCCESS)
|
||||||
|
|
Loading…
Reference in a new issue