Don't reset the VRAM cache if saving a state (#1944)

- This fixes a flickering bug in melonDS DS
This commit is contained in:
Jesse Talavera 2024-01-08 09:20:48 -05:00 committed by GitHub
parent 8143f54956
commit 740305cc25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -275,7 +275,8 @@ void GPU::DoSavestate(Savestate* file) noexcept
GPU2D_B.DoSavestate(file);
GPU3D.DoSavestate(file);
ResetVRAMCache();
if (!file->Saving)
ResetVRAMCache();
}
void GPU::AssignFramebuffers() noexcept