alexheretic / ktx

Rust KTX texture storage format parsing
Apache License 2.0
11 stars 5 forks source link

Cubemap #3

Closed alisa101rs closed 3 years ago

alisa101rs commented 4 years ago

According to the specification, if array number == 0 and faces == 6 then image size contains size of a single face, this case is not processed in the Textures iterator.

To fix this, you need to multiply image size by 6, if current file is cubemap.

alexheretic commented 3 years ago

Fixed by #10