VulkanHostDisplay: Ensure previous frame is presented before acquiring image

This commit is contained in:
Connor McLaughlin
2021-01-24 17:31:08 +10:00
parent b1d4d5db5e
commit 4a60cc4c1e
2 changed files with 6 additions and 0 deletions

View File

@ -602,6 +602,9 @@ bool VulkanHostDisplay::Render()
return false;
}
// Previous frame needs to be presented before we can acquire the swap chain.
g_vulkan_context->WaitForPresentComplete();
VkResult res = m_swap_chain->AcquireNextImage();
if (res != VK_SUCCESS)
{