diff --git a/src/rendering/vulkan/system/vk_framebuffer.cpp b/src/rendering/vulkan/system/vk_framebuffer.cpp index 1b7528747dd..637a4c7da27 100644 --- a/src/rendering/vulkan/system/vk_framebuffer.cpp +++ b/src/rendering/vulkan/system/vk_framebuffer.cpp @@ -286,8 +286,12 @@ void VulkanFrameBuffer::WaitForCommands(bool finish) } int numWaitFences = MIN(mNextSubmit, (int)maxConcurrentSubmitCount); - vkWaitForFences(device->device, numWaitFences, mSubmitWaitFences, VK_TRUE, std::numeric_limits::max()); - vkResetFences(device->device, numWaitFences, mSubmitWaitFences); + + if (numWaitFences > 0) + { + vkWaitForFences(device->device, numWaitFences, mSubmitWaitFences, VK_TRUE, std::numeric_limits::max()); + vkResetFences(device->device, numWaitFences, mSubmitWaitFences); + } DeleteFrameObjects(); mNextSubmit = 0;