diff options
author | Lioncash <mathew1800@gmail.com> | 2020-12-07 22:30:36 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-12-07 22:30:39 +0100 |
commit | 09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d (patch) | |
tree | 3ea0bbe356d45a250b1b5300773bc2c419a39c19 /src/video_core/buffer_cache | |
parent | Merge pull request #5149 from comex/xx-map-interval (diff) | |
download | yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.tar yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.tar.gz yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.tar.bz2 yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.tar.lz yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.tar.xz yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.tar.zst yuzu-09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d.zip |
Diffstat (limited to 'src/video_core/buffer_cache')
-rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index e7edd733f..38961f3fd 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -545,7 +545,7 @@ private: bool IsRegionWritten(VAddr start, VAddr end) const { const u64 page_end = end >> WRITE_PAGE_BIT; for (u64 page_start = start >> WRITE_PAGE_BIT; page_start <= page_end; ++page_start) { - if (written_pages.count(page_start) > 0) { + if (written_pages.contains(page_start)) { return true; } } |