Skip to content

Commit

Permalink
Fix --convert-primaries (#753)
Browse files Browse the repository at this point in the history
Fixes #752.
  • Loading branch information
aqnuep authored Aug 22, 2023
1 parent 3e7fd0a commit e437ec4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cts
Submodule cts updated 236 files
1 change: 1 addition & 0 deletions tools/ktx/command_create.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2006,6 +2006,7 @@ void CommandCreate::determineTargetColorSpace(const ImageInput& in, ImageSpec& t
} else if (options.convertPrimaries.value() != colorSpaceInfo.usedInputPrimaries) {
colorSpaceInfo.srcColorPrimaries = createColorPrimaries(colorSpaceInfo.usedInputPrimaries);
colorSpaceInfo.dstColorPrimaries = createColorPrimaries(options.convertPrimaries.value());
target.format().setPrimaries(options.convertPrimaries.value());
}
}

Expand Down

0 comments on commit e437ec4

Please sign in to comment.