Merge pull request #10499 from huffman/fix/ktx-progressive-image-size

Fix ktx image size in progrssively loaded cubemaps
This commit is contained in:
Ryan Huffman 2017-05-18 15:26:52 -07:00 committed by GitHub
commit 72af4219b8

View file

@ -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++;