GPUBackend: Fix VRAM loss with runahead/rewind

This commit is contained in:
Stenzek 2024-12-23 17:55:33 +10:00
parent f3f99f7eac
commit 8e254c4baf
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ void GPUBackend::HandleCommand(const GPUThreadCommand* cmd)
case GPUBackendCommandType::LoadMemoryState:
{
System::MemorySaveState& mss = *static_cast<const GPUBackendDoMemoryStateCommand*>(cmd)->memory_save_state;
StateWrapper sw(mss.gpu_state_data.span(mss.gpu_state_size), StateWrapper::Mode::Read, SAVE_STATE_VERSION);
StateWrapper sw(mss.gpu_state_data.span(0, mss.gpu_state_size), StateWrapper::Mode::Read, SAVE_STATE_VERSION);
DoMemoryState(sw, mss);
}
break;