mirror of https://github.com/RPCS3/rpcs3.git
vulkan: Gracefully handle back-to-back flip request spam
This commit is contained in:
parent
f71f67c4ff
commit
462b93f62c
|
@ -2242,8 +2242,14 @@ void VKGSRender::flip(int buffer)
|
||||||
}
|
}
|
||||||
else if (m_current_frame->swap_command_buffer)
|
else if (m_current_frame->swap_command_buffer)
|
||||||
{
|
{
|
||||||
//Unreachable
|
if (m_draw_calls > 0)
|
||||||
fmt::throw_exception("Possible data corruption on frame context storage detected");
|
{
|
||||||
|
//Unreachable
|
||||||
|
fmt::throw_exception("Possible data corruption on frame context storage detected");
|
||||||
|
}
|
||||||
|
|
||||||
|
//There were no draws and back-to-back flips happened
|
||||||
|
process_swap_request(m_current_frame, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!resize_screen)
|
if (!resize_screen)
|
||||||
|
|
Loading…
Reference in New Issue