mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Vulkan: Ensure all frames are written before resizing framedump buffer
Prevents destroying a framebuffer that may still be in use by a previous frame dump.
This commit is contained in:
parent
48da42b49f
commit
3fd1e6c2f6
@ -959,6 +959,10 @@ bool Renderer::ResizeFrameDumpBuffer(u32 new_width, u32 new_height)
|
||||
return true;
|
||||
}
|
||||
|
||||
// Ensure all previous frames have been dumped, since we are destroying a framebuffer
|
||||
// that may still be in use.
|
||||
FlushFrameDump();
|
||||
|
||||
if (m_frame_dump_framebuffer != VK_NULL_HANDLE)
|
||||
{
|
||||
vkDestroyFramebuffer(g_vulkan_context->GetDevice(), m_frame_dump_framebuffer, nullptr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user