aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache/texture_cache.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-06-29 19:52:37 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-06-29 19:52:37 -0300
commitf6f1a8f26a302dc33df635625c490f0d65880059 (patch)
tree4b0f73bcd53ef8ddc3e57520d82d32937cb21b5c /src/video_core/texture_cache/texture_cache.h
parentdd9ace502bfd2239ceddad8c5c41baf0e10e2144 (diff)
texture_cache: Style changes
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r--src/video_core/texture_cache/texture_cache.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 9fcf87744..3df3e17dd 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -571,8 +571,7 @@ private:
// Step 1
// Check Level 1 Cache for a fast structural match. If candidate surface
// matches at certain level we are pretty much done.
- auto iter = l1_cache.find(cache_addr);
- if (iter != l1_cache.end()) {
+ if (const auto iter = l1_cache.find(cache_addr); iter != l1_cache.end()) {
TSurface& current_surface = iter->second;
const auto topological_result = current_surface->MatchesTopology(params);
if (topological_result != MatchTopologyResult::FullMatch) {