mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-31 01:25:18 +01:00
vk: Drain the pending frame queue before resizing the swapchain
This commit is contained in:
@@ -61,6 +61,21 @@ void VKGSRender::reinitialize_swapchain()
|
||||
frame_context_cleanup(&ctx);
|
||||
}
|
||||
|
||||
// NOTE: frame_context_cleanup alters the queued_frames structure.
|
||||
while (!m_queued_frames.empty())
|
||||
{
|
||||
auto& frame = m_queued_frames.front();
|
||||
if (!frame->swap_command_buffer)
|
||||
{
|
||||
// Drop it
|
||||
m_queued_frames.pop_front();
|
||||
continue;
|
||||
}
|
||||
|
||||
frame_context_cleanup(frame);
|
||||
}
|
||||
ensure(m_queued_frames.empty());
|
||||
|
||||
// Discard the current upscaling pipeline if any
|
||||
m_upscaler.reset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user