We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b0db48 commit 77ac281Copy full SHA for 77ac281
tools/ktx/command_create.cpp
@@ -1351,7 +1351,7 @@ void CommandCreate::executeCreate() {
1351
}
1352
1353
if (options.normalize) {
1354
- if (colorSpaceInfo.usedInputTransferFunction != KHR_DF_TRANSFER_LINEAR) {
+ if (target.format().transfer() != KHR_DF_TRANSFER_LINEAR) {
1355
fatal(rc::INVALID_FILE,
1356
"Input file \"{}\" transfer function is not linear. Normalize is only available for linear images. "
1357
"Use --assign-oetf=linear or --convert-oetf=linear to convert to linear if required.",
0 commit comments