vk: fix generateMipmaps level (#8495)

The level counting was off by one.

FIXES=400710879
This commit is contained in:
Powei Feng
2025-03-12 14:47:52 -07:00
committed by GitHub
parent 5f730ac173
commit 60640be5e8

View File

@@ -1266,10 +1266,9 @@ void VulkanDriver::generateMipmaps(Handle<HwTexture> th) {
mBlitter.blit(VK_FILTER_LINEAR, dst, dstOffsets, src, srcOffsets);
}
level++;
srcw = dstw;
srch = dsth;
} while ((srcw > 1 || srch > 1) && level < t->levels);
} while ((srcw > 1 || srch > 1) && ++level < t->levels - 1);
}
void VulkanDriver::compilePrograms(CompilerPriorityQueue priority,