From af310ddff85e927d5d63e60d4636f98213633a25 Mon Sep 17 00:00:00 2001 From: jacky400 Date: Sun, 24 Apr 2022 15:38:22 +0800 Subject: [PATCH] Update buffer_base.h --- src/video_core/buffer_cache/buffer_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h index 3e20608ca5..99bbf3c8b9 100644 --- a/src/video_core/buffer_cache/buffer_base.h +++ b/src/video_core/buffer_cache/buffer_base.h @@ -211,7 +211,7 @@ public: void FlushCachedWrites() noexcept { flags &= ~BufferFlagBits::CachedWrites; const u64 num_words = NumWords(); - u64* const cached_words = Array(); + const u64* const cached_words = Array(); u64* const untracked_words = Array(); u64* const cpu_words = Array(); for (u64 word_index = 0; word_index < num_words; ++word_index) { @@ -219,7 +219,7 @@ public: NotifyRasterizer(word_index, untracked_words[word_index], cached_bits); untracked_words[word_index] |= cached_bits; cpu_words[word_index] |= cached_bits; - cached_words[word_index] = 0; + //cached_words[word_index] = 0; } }