mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-26 21:30:13 +00:00
VulkanHostDisplay: Wait for GPU idle on surface change
This commit is contained in:
parent
90ac14a242
commit
2fe1f3c2f7
@ -72,6 +72,8 @@ void* VulkanHostDisplay::GetRenderContext() const
|
|||||||
|
|
||||||
bool VulkanHostDisplay::ChangeRenderWindow(const WindowInfo& new_wi)
|
bool VulkanHostDisplay::ChangeRenderWindow(const WindowInfo& new_wi)
|
||||||
{
|
{
|
||||||
|
g_vulkan_context->WaitForGPUIdle();
|
||||||
|
|
||||||
if (new_wi.type == WindowInfo::Type::Surfaceless)
|
if (new_wi.type == WindowInfo::Type::Surfaceless)
|
||||||
{
|
{
|
||||||
g_vulkan_context->ExecuteCommandBuffer(true);
|
g_vulkan_context->ExecuteCommandBuffer(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user