summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-04-16 05:59:33 +0200
committerLioncash <mathew1800@gmail.com>2020-04-16 05:59:35 +0200
commitd551c910bbd0570e953b3c769e08ae7edc495e3c (patch)
tree8cf03f274d5aa53bc00ac253d017e115cbbc5636 /src/video_core
parentMerge pull request #3612 from ReinUsesLisp/red (diff)
downloadyuzu-d551c910bbd0570e953b3c769e08ae7edc495e3c.tar
yuzu-d551c910bbd0570e953b3c769e08ae7edc495e3c.tar.gz
yuzu-d551c910bbd0570e953b3c769e08ae7edc495e3c.tar.bz2
yuzu-d551c910bbd0570e953b3c769e08ae7edc495e3c.tar.lz
yuzu-d551c910bbd0570e953b3c769e08ae7edc495e3c.tar.xz
yuzu-d551c910bbd0570e953b3c769e08ae7edc495e3c.tar.zst
yuzu-d551c910bbd0570e953b3c769e08ae7edc495e3c.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/texture_cache/surface_base.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/surface_base.h b/src/video_core/texture_cache/surface_base.h
index a39a8661b..c5ab21f56 100644
--- a/src/video_core/texture_cache/surface_base.h
+++ b/src/video_core/texture_cache/surface_base.h
@@ -72,9 +72,9 @@ public:
return (cpu_addr < end) && (cpu_addr_end > start);
}
- bool IsInside(const GPUVAddr other_start, const GPUVAddr other_end) {
+ bool IsInside(const GPUVAddr other_start, const GPUVAddr other_end) const {
const GPUVAddr gpu_addr_end = gpu_addr + guest_memory_size;
- return (gpu_addr <= other_start && other_end <= gpu_addr_end);
+ return gpu_addr <= other_start && other_end <= gpu_addr_end;
}
// Use only when recycling a surface