mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fix SubmitCommands bug if it no swapchain image was acquired
This commit is contained in:
parent
7b06fbe28e
commit
5f70ce2148
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue