GPU/Vulkan: Fix possible framebuffer destroy-while-in-use
This commit is contained in:
parent
c0d8e44548
commit
d5d9cb623d
|
@ -129,13 +129,13 @@ void GPU_HW_Vulkan::UpdateSettings()
|
|||
ResetGraphicsAPIState();
|
||||
}
|
||||
|
||||
if (framebuffer_changed)
|
||||
CreateFramebuffer();
|
||||
|
||||
// Everything should be finished executing before recreating resources.
|
||||
m_host_display->ClearDisplayTexture();
|
||||
g_vulkan_context->ExecuteCommandBuffer(true);
|
||||
|
||||
if (framebuffer_changed)
|
||||
CreateFramebuffer();
|
||||
|
||||
if (shaders_changed)
|
||||
{
|
||||
// clear it since we draw a loading screen and it's not in the correct state
|
||||
|
|
Loading…
Reference in New Issue