mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 01:07:09 +02:00
Fix number of mips calculation
This commit is contained in:
parent
5acf966b73
commit
f32817beac
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ ktx::KTXUniquePointer Texture::serialize(const Texture& texture) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Number level of mips coming
|
// Number level of mips coming
|
||||||
header.numberOfMipmapLevels = texture.maxMip();
|
header.numberOfMipmapLevels = texture.maxMip() + 1;
|
||||||
|
|
||||||
ktx::Images images;
|
ktx::Images images;
|
||||||
for (uint32_t level = 0; level < header.numberOfMipmapLevels; level++) {
|
for (uint32_t level = 0; level < header.numberOfMipmapLevels; level++) {
|
||||||
|
|
Loading…
Reference in a new issue