mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
libktx: Update to 4.4.0
This commit is contained in:
parent
d59994688c
commit
b71d0a3671
32 changed files with 1130 additions and 381 deletions
7
thirdparty/libktx/lib/basis_transcode.cpp
vendored
7
thirdparty/libktx/lib/basis_transcode.cpp
vendored
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
/**
|
||||
* @internal
|
||||
* @file basis_transcode.cpp
|
||||
* @file
|
||||
* @~English
|
||||
*
|
||||
* @brief Functions for transcoding Basis Universal BasisLZ/ETC1S and UASTC textures.
|
||||
|
|
@ -494,6 +494,11 @@ ktxTexture2_transcodeLzEtc1s(ktxTexture2* This,
|
|||
uint32_t& imageCount = firstImages[This->numLevels];
|
||||
|
||||
if (BGD_TABLES_ADDR(0, bgdh, imageCount) + bgdh.tablesByteLength > priv._sgdByteLength) {
|
||||
// Compiler will not allow `goto cleanup;` because "jump bypasses variable initialization."
|
||||
// The static initializations below this and before the loop are presumably the issue
|
||||
// as the compiler is,presumably, inserting code to destruct those at the end of the
|
||||
// function.
|
||||
delete[] firstImages;
|
||||
return KTX_FILE_DATA_ERROR;
|
||||
}
|
||||
// FIXME: Do more validation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue