summaryrefslogtreecommitdiff
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/memory.cpp')
-rw-r--r--src/core/memory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 7b79cb8bc..549b64ac4 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -465,7 +465,8 @@ struct Memory::Impl {
465 } 465 }
466 466
467 if (Settings::IsFastmemEnabled()) { 467 if (Settings::IsFastmemEnabled()) {
468 system.DeviceMemory().buffer.Protect(vaddr, size, !cached, !cached); 468 const bool is_read_enable = !Settings::values.use_reactive_flushing.GetValue() || !cached;
469 system.DeviceMemory().buffer.Protect(vaddr, size, is_read_enable, !cached);
469 } 470 }
470 471
471 // Iterate over a contiguous CPU address space, which corresponds to the specified GPU 472 // Iterate over a contiguous CPU address space, which corresponds to the specified GPU