Skip to content

Commit fbd1c07

Browse files
author
devsh
committed
fix conversion bug for mipped images
1 parent da092fc commit fbd1c07

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/nbl/video/utilities/CAssetConverter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,6 +1856,8 @@ auto CAssetConverter::reserve(const SInputs& inputs) -> SReserveResult
18561856
for (uint16_t l=1; l<patch.mipLevels; l++)
18571857
{
18581858
const auto levelMask = 0x1<<(l-1);
1859+
if ((patch.recomputeMips&levelMask)==0)
1860+
continue;
18591861
const auto prevLevel = l-1;
18601862
const auto prevLevelMask = 0x1<<(prevLevel-1);
18611863
// marked as recompute but has no source data on previous level

0 commit comments

Comments
 (0)