early-access version 1850

This commit is contained in:
pineappleEA
2021-07-06 19:35:25 +02:00
parent 0d01d9440c
commit 4591272f77
17 changed files with 123 additions and 111 deletions

View File

@@ -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;