mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 20:25:46 -04:00
VulkanHostDisplay: Ensure previous frame is presented before acquiring image
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user