diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-26 01:35:08 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-26 01:35:08 +0200 |
commit | 223ca8075399463e51d4afea1adb0c5b6fba8588 (patch) | |
tree | 3fc2ba06ee700e9cc7f1c7f42f8e476bcd2cecc8 /src | |
parent | gl_texture_cache: Correct asserts (diff) | |
download | yuzu-223ca8075399463e51d4afea1adb0c5b6fba8588.tar yuzu-223ca8075399463e51d4afea1adb0c5b6fba8588.tar.gz yuzu-223ca8075399463e51d4afea1adb0c5b6fba8588.tar.bz2 yuzu-223ca8075399463e51d4afea1adb0c5b6fba8588.tar.lz yuzu-223ca8075399463e51d4afea1adb0c5b6fba8588.tar.xz yuzu-223ca8075399463e51d4afea1adb0c5b6fba8588.tar.zst yuzu-223ca8075399463e51d4afea1adb0c5b6fba8588.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index fb6ca41ff..b5b0e91ef 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -225,9 +225,9 @@ public: } const CacheAddr page = cache_addr >> registry_page_bits; std::vector<TSurface>& list = registry[page]; - for (auto& s : list) { - if (s->GetCacheAddr() == cache_addr) { - return s; + for (auto& surface : list) { + if (surface->GetCacheAddr() == cache_addr) { + return surface; } } return nullptr; |