Replaced gli with libktx for cubemap texture loading sample

This commit is contained in:
Sascha Willems 2019-08-03 10:00:29 +02:00
parent 7e2bd36dfa
commit 40a16ac48a
2 changed files with 32 additions and 20 deletions

View file

@ -219,7 +219,7 @@ public:
uint32_t offset = 0;
for (uint32_t i = 0; i < texture.mipLevels; i++) {
// Calculate offset into staging buffer for the current mip lavel
// Calculate offset into staging buffer for the current mip level
ktx_size_t offset;
assert(ktxTexture_GetImageOffset(ktxTexture, i, 0, 0, &offset) == KTX_SUCCESS);
// Setup a buffer image copy structure for the current mip level