Skip to content

Commit

Permalink
image_info: Remove obsolete assert
Browse files Browse the repository at this point in the history
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
  • Loading branch information
raphaelthegreat committed Feb 24, 2025
1 parent ea78e4d commit bfc6fa9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/video_core/texture_cache/image_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bfc6fa9

Please sign in to comment.