summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-01-17 08:47:46 +0100
committerLioncash <mathew1800@gmail.com>2021-01-17 08:47:48 +0100
commit5f4e7c77bd9056888e1eac3cae6873ce3ec261e1 (patch)
treee68ed22f7ebd82d80f7eeb3cafb2aeab4b5739d3 /src/video_core
parentMerge pull request #5740 from lioncash/const-fn (diff)
downloadyuzu-5f4e7c77bd9056888e1eac3cae6873ce3ec261e1.tar
yuzu-5f4e7c77bd9056888e1eac3cae6873ce3ec261e1.tar.gz
yuzu-5f4e7c77bd9056888e1eac3cae6873ce3ec261e1.tar.bz2
yuzu-5f4e7c77bd9056888e1eac3cae6873ce3ec261e1.tar.lz
yuzu-5f4e7c77bd9056888e1eac3cae6873ce3ec261e1.tar.xz
yuzu-5f4e7c77bd9056888e1eac3cae6873ce3ec261e1.tar.zst
yuzu-5f4e7c77bd9056888e1eac3cae6873ce3ec261e1.zip
Diffstat (limited to 'src/video_core')
-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 ce8fcfe0a..b23424523 100644
--- a/src/video_core/texture_cache/util.cpp
+++ b/src/video_core/texture_cache/util.cpp
@@ -679,7 +679,7 @@ u32 CalculateLayerSize(const ImageInfo& info) noexcept {
}
std::array<u32, MAX_MIP_LEVELS> CalculateMipLevelOffsets(const ImageInfo& info) noexcept {
- ASSERT(info.resources.levels <= MAX_MIP_LEVELS);
+ ASSERT(info.resources.levels <= static_cast<s32>(MAX_MIP_LEVELS));
const LevelInfo level_info = MakeLevelInfo(info);
std::array<u32, MAX_MIP_LEVELS> offsets{};
u32 offset = 0;