mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 15:45:42 +00:00
System: Fix crash on emptying rewind buffer
This commit is contained in:
parent
e6be0532cb
commit
87d24d3259
|
@ -3958,7 +3958,7 @@ bool System::LoadRewindState(u32 skip_saves /*= 0*/, bool consume_state /*=true
|
|||
{
|
||||
while (skip_saves > 0 && !s_rewind_states.empty())
|
||||
{
|
||||
g_gpu_device->RecycleTexture(std::move(s_rewind_states.front().vram_texture));
|
||||
g_gpu_device->RecycleTexture(std::move(s_rewind_states.back().vram_texture));
|
||||
s_rewind_states.pop_back();
|
||||
skip_saves--;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue