mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Fix ktx image size in progrssively loaded cubemaps
The size being written was the full image size (size of all faces), when it should have been the face size.
This commit is contained in:
parent
c2b140cc03
commit
6d2d838510
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