mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Merge pull request #10499 from huffman/fix/ktx-progressive-image-size
Fix ktx image size in progrssively loaded cubemaps
This commit is contained in:
commit
72af4219b8
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,8 @@ namespace ktx {
|
|||
|
||||
for (size_t i = 0; i < descriptors.size(); ++i) {
|
||||
auto ptr = reinterpret_cast<uint32_t*>(currentDestPtr);
|
||||
*ptr = descriptors[i]._imageSize;
|
||||
uint32_t imageFaceSize = descriptors[i]._faceSize;
|
||||
*ptr = imageFaceSize; // the imageSize written in the ktx is the FACE size
|
||||
|
||||
#ifdef DEBUG
|
||||
ptr++;
|
||||
|
|
Loading…
Reference in a new issue