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