diff options
| author | Takoroka <137927095+Takoroka@users.noreply.github.com> | 2026-10-29 22:12:58 -0400 |
|---|---|---|
| committer | Takoroka <137927095+Takoroka@users.noreply.github.com> | 2026-10-29 22:12:58 -0400 |
| commit | 9f774d502d071bfa1b16fdcd15eb50587cbefbdd (patch) | |
| tree | a7880e4eb1d3af95a849b7ccdac67251f8cef31c /src/video_core/texture_cache/image_base.cpp | |
| parent | b09f5339c1e621340f2d3a12ff40b256f5419253 (diff) | |
texture_cache: don't shadow ImageBase::info in FindView
The clang-cl build fix named the lambda parameter info, which shadows the
member. GCC builds with -Werror=shadow (the Linux release workflow) failed
on it.
Diffstat (limited to 'src/video_core/texture_cache/image_base.cpp')
| -rw-r--r-- | src/video_core/texture_cache/image_base.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/image_base.cpp b/src/video_core/texture_cache/image_base.cpp index 8db081debd..3185dd8428 100644 --- a/src/video_core/texture_cache/image_base.cpp +++ b/src/video_core/texture_cache/image_base.cpp @@ -109,8 +109,8 @@ std::optional<SubresourceBase> ImageBase::TryFindBase(GPUVAddr other_addr) const } ImageViewId ImageBase::FindView(const ImageViewInfo& view_info) const noexcept { - const auto it = std::ranges::find_if(image_view_infos, [&view_info](const ImageViewInfo& info) { - return info == view_info; + const auto it = std::ranges::find_if(image_view_infos, [&view_info](const ImageViewInfo& candidate) { + return candidate == view_info; }); if (it == image_view_infos.end()) { return ImageViewId{}; |
