From bfc6fa902ea3990c8b582d08c393f5b3c2a318c9 Mon Sep 17 00:00:00 2001 From: IndecisiveTurtle <47210458+raphaelthegreat@users.noreply.github.com> Date: Mon, 24 Feb 2025 13:26:57 +0200 Subject: [PATCH] image_info: Remove obsolete assert The old code assumed the mip only had 1 layer thus a right overlap could not return mip 0. But with the new path we handle images that are both mip-mapped and multi-layer, thus this can happen --- src/video_core/texture_cache/image_info.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/video_core/texture_cache/image_info.cpp b/src/video_core/texture_cache/image_info.cpp index ae46822e0..60c52c666 100644 --- a/src/video_core/texture_cache/image_info.cpp +++ b/src/video_core/texture_cache/image_info.cpp @@ -250,7 +250,6 @@ s32 ImageInfo::MipOf(const ImageInfo& info) const { if (mip < 0) { return -1; } - ASSERT(mip != 0); const auto mip_w = std::max(info.size.width >> mip, 1u); const auto mip_h = std::max(info.size.height >> mip, 1u);