Skip to content

Commit

Permalink
fix: forcing a transfer function with multiple mipmap levels provided (
Browse files Browse the repository at this point in the history
  • Loading branch information
atteneder authored Oct 7, 2020
1 parent c92b946 commit 6f32ea8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/toktx/toktx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ toktxApp::main(int argc, _TCHAR *argv[])
Image::CreateFromFile(infile,
options.oetf == KHR_DF_TRANSFER_UNSPECIFIED,
options.bcmp);
if(options.oetf != KHR_DF_TRANSFER_UNSPECIFIED) {
image->setOetf(options.oetf);
}
} catch (exception& e) {
cerr << name << ": failed to create image from "
<< infile << ". " << e.what() << endl;
Expand Down

0 comments on commit 6f32ea8

Please sign in to comment.