From 740305cc25d7bebd40076d6588097cb4de2f4ef8 Mon Sep 17 00:00:00 2001 From: Jesse Talavera Date: Mon, 8 Jan 2024 09:20:48 -0500 Subject: Don't reset the VRAM cache if saving a state (#1944) - This fixes a flickering bug in melonDS DS --- src/GPU.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3