GPU/Vulkan: Fix possible framebuffer destroy-while-in-use

pull/1277/head
Connor McLaughlin 4 years ago
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…
Cancel
Save