Skip to content

Commit 3c0f586

Browse files
committed
FIX python binding for new ktxBasisParams struct
1 parent 9a92cf0 commit 3c0f586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/python_binding/pyktx/ktx_texture2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ KTX_error_code PY_ktxTexture2_CompressBasisEx(ktxTexture2 *texture,
106106
{
107107
ktxBasisParams params = {
108108
.structSize = sizeof(ktxBasisParams),
109-
.uastc = uastc,
109+
.codecFlag = (uastc) ? KTX_BASIS_CODEC_UASTC_LDR : KTX_BASIS_CODEC_ETC1S,
110110
.verbose = verbose,
111111
.noSSE = noSSE,
112112
.threadCount = threadCount,

0 commit comments

Comments
 (0)