mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 18:35:47 -04:00
VulkanHostDisplay: Wait for GPU idle on surface change
This commit is contained in:
@ -72,6 +72,8 @@ void* VulkanHostDisplay::GetRenderContext() const
|
||||
|
||||
bool VulkanHostDisplay::ChangeRenderWindow(const WindowInfo& new_wi)
|
||||
{
|
||||
g_vulkan_context->WaitForGPUIdle();
|
||||
|
||||
if (new_wi.type == WindowInfo::Type::Surfaceless)
|
||||
{
|
||||
g_vulkan_context->ExecuteCommandBuffer(true);
|
||||
|
Reference in New Issue
Block a user