aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Talavera <jesse@jesse.tg>2024-01-08 09:20:48 -0500
committerGitHub <noreply@github.com>2024-01-08 15:20:48 +0100
commit740305cc25d7bebd40076d6588097cb4de2f4ef8 (patch)
tree69ae93e9b100657ca30e1589e0935f09a3d2ae2c
parent8143f549566029f366b774d0722c5f16011b9b56 (diff)
Don't reset the VRAM cache if saving a state (#1944)
- This fixes a flickering bug in melonDS DS
-rw-r--r--src/GPU.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/GPU.cpp b/src/GPU.cpp
index c226ccb..f23e641 100644
--- a/src/GPU.cpp
+++ b/src/GPU.cpp
@@ -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