mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 14:03:17 +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
|
||||
header.numberOfMipmapLevels = texture.maxMip();
|
||||
header.numberOfMipmapLevels = texture.maxMip() + 1;
|
||||
|
||||
ktx::Images images;
|
||||
for (uint32_t level = 0; level < header.numberOfMipmapLevels; level++) {
|
||||
|
|
Loading…
Reference in a new issue