summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/util.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-06-28 08:55:02 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-06-28 15:21:42 +0200
commitd3d6613d33d6ca695732ccbdbd3e749053d22d0a (patch)
treef60dfab785157d35dd4110f7cf42b52c7180fee0 /src/video_core/texture_cache/util.cpp
parentMerge pull request #6535 from ameerj/insert-fancy-name (diff)
downloadyuzu-d3d6613d33d6ca695732ccbdbd3e749053d22d0a.tar
yuzu-d3d6613d33d6ca695732ccbdbd3e749053d22d0a.tar.gz
yuzu-d3d6613d33d6ca695732ccbdbd3e749053d22d0a.tar.bz2
yuzu-d3d6613d33d6ca695732ccbdbd3e749053d22d0a.tar.lz
yuzu-d3d6613d33d6ca695732ccbdbd3e749053d22d0a.tar.xz
yuzu-d3d6613d33d6ca695732ccbdbd3e749053d22d0a.tar.zst
yuzu-d3d6613d33d6ca695732ccbdbd3e749053d22d0a.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/texture_cache/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/util.cpp b/src/video_core/texture_cache/util.cpp
index 4efe042b6..20794fa32 100644
--- a/src/video_core/texture_cache/util.cpp
+++ b/src/video_core/texture_cache/util.cpp
@@ -394,7 +394,7 @@ template <u32 GOB_EXTENT>
const s32 mip_offset = diff % layer_stride;
const std::array offsets = CalculateMipLevelOffsets(new_info);
const auto end = offsets.begin() + new_info.resources.levels;
- const auto it = std::find(offsets.begin(), end, mip_offset);
+ const auto it = std::find(offsets.begin(), end, static_cast<u32>(mip_offset));
if (it == end) {
// Mipmap is not aligned to any valid size
return std::nullopt;