diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-30 00:52:37 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-30 00:52:37 +0200 |
commit | f6f1a8f26a302dc33df635625c490f0d65880059 (patch) | |
tree | 4b0f73bcd53ef8ddc3e57520d82d32937cb21b5c /src/video_core/texture_cache/texture_cache.h | |
parent | texture_cache: Use std::array for siblings_table (diff) | |
download | yuzu-f6f1a8f26a302dc33df635625c490f0d65880059.tar yuzu-f6f1a8f26a302dc33df635625c490f0d65880059.tar.gz yuzu-f6f1a8f26a302dc33df635625c490f0d65880059.tar.bz2 yuzu-f6f1a8f26a302dc33df635625c490f0d65880059.tar.lz yuzu-f6f1a8f26a302dc33df635625c490f0d65880059.tar.xz yuzu-f6f1a8f26a302dc33df635625c490f0d65880059.tar.zst yuzu-f6f1a8f26a302dc33df635625c490f0d65880059.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 3 |
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) { |