1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

libktx: Update to 4.3.1

This commit is contained in:
Jakub Marcowski
2024-02-07 19:55:27 +01:00
committed by Jakub Marcowski
parent 16d61427ca
commit 1be2fe1f7b
30 changed files with 2734 additions and 658 deletions

View File

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