Skip to content

Commit 77ac281

Browse files
Use target.format().transfer() to check for Linearity for normalizing, and update tests submodule
1 parent 7b0db48 commit 77ac281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/ktx/command_create.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ void CommandCreate::executeCreate() {
13511351
}
13521352

13531353
if (options.normalize) {
1354-
if (colorSpaceInfo.usedInputTransferFunction != KHR_DF_TRANSFER_LINEAR) {
1354+
if (target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
13551355
fatal(rc::INVALID_FILE,
13561356
"Input file \"{}\" transfer function is not linear. Normalize is only available for linear images. "
13571357
"Use --assign-oetf=linear or --convert-oetf=linear to convert to linear if required.",

0 commit comments

Comments
 (0)