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

@ -941,6 +941,9 @@ void Context::DoPresent(VkSemaphore wait_semaphore, VkSwapchainKHR present_swap_
void Context::WaitForPresentComplete()
{
if (m_present_done.load())
return;
std::unique_lock<std::mutex> lock(m_present_mutex);
WaitForPresentComplete(lock);
}