summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-16 01:29:00 +0200
committerLioncash <mathew1800@gmail.com>2019-10-16 01:31:33 +0200
commita24e8bf9cf0ca37d29ef44c441dc132885c82a6f (patch)
tree6bb844ba484679499c33587bc3c253901c79e9fe /src/video_core/texture_cache
parentMerge pull request #2977 from lioncash/algorithm (diff)
downloadyuzu-a24e8bf9cf0ca37d29ef44c441dc132885c82a6f.tar
yuzu-a24e8bf9cf0ca37d29ef44c441dc132885c82a6f.tar.gz
yuzu-a24e8bf9cf0ca37d29ef44c441dc132885c82a6f.tar.bz2
yuzu-a24e8bf9cf0ca37d29ef44c441dc132885c82a6f.tar.lz
yuzu-a24e8bf9cf0ca37d29ef44c441dc132885c82a6f.tar.xz
yuzu-a24e8bf9cf0ca37d29ef44c441dc132885c82a6f.tar.zst
yuzu-a24e8bf9cf0ca37d29ef44c441dc132885c82a6f.zip
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/texture_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index ca2da8f97..0a23114f9 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -402,7 +402,7 @@ private:
if (params.block_depth > 1 || params.target == SurfaceTarget::Texture3D) {
return RecycleStrategy::Flush;
}
- for (auto s : overlaps) {
+ for (const auto& s : overlaps) {
const auto& s_params = s->GetSurfaceParams();
if (s_params.block_depth > 1 || s_params.target == SurfaceTarget::Texture3D) {
return RecycleStrategy::Flush;
@@ -575,7 +575,7 @@ private:
} else if (Settings::values.use_accurate_gpu_emulation && passed_tests != overlaps.size()) {
return {};
}
- for (auto surface : overlaps) {
+ for (const auto& surface : overlaps) {
Unregister(surface);
}
new_surface->MarkAsModified(modified, Tick());