Skip to content

Commit

Permalink
Don't reset the VRAM cache if saving a state (melonDS-emu#1944)
Browse files Browse the repository at this point in the history
- This fixes a flickering bug in melonDS DS
  • Loading branch information
JesseTG authored Jan 8, 2024
1 parent 8143f54 commit 740305c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 740305c

Please sign in to comment.