diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-22 14:39:10 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-22 14:39:10 +0100 |
commit | cf20bd7a0760ddcff3df4c6e7661fa3fd5949e4c (patch) | |
tree | 3a64577977741e47d25a2cddcf714e9ba82fec53 /thirdparty/libktx/lib/basis_transcode.cpp | |
parent | a246a4b523f1ec107520726f0294e3d6cdc18995 (diff) | |
parent | 1be2fe1f7b97b8d70048bdec14a9ef8beb5db013 (diff) | |
download | redot-engine-cf20bd7a0760ddcff3df4c6e7661fa3fd5949e4c.tar.gz |
Merge pull request #88075 from Chubercik/libktx-4.3.1
libktx: Update to 4.3.1
Diffstat (limited to 'thirdparty/libktx/lib/basis_transcode.cpp')
-rw-r--r-- | thirdparty/libktx/lib/basis_transcode.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/thirdparty/libktx/lib/basis_transcode.cpp b/thirdparty/libktx/lib/basis_transcode.cpp index 8df65bcb68..d7ecb7a0fd 100644 --- a/thirdparty/libktx/lib/basis_transcode.cpp +++ b/thirdparty/libktx/lib/basis_transcode.cpp @@ -372,6 +372,12 @@ ktxTexture2_transcodeUastc(ktxTexture2* This, This->dataSize = prototype->dataSize; prototype->pData = 0; prototype->dataSize = 0; + // Free SGD data + This->_private->_sgdByteLength = 0; + if (This->_private->_supercompressionGlobalData) { + free(This->_private->_supercompressionGlobalData); + This->_private->_supercompressionGlobalData = NULL; + } } ktxTexture2_Destroy(prototype); return result; |