Skip to content

Commit

Permalink
color_helpers: Fix native whitepoint accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Oct 25, 2023
1 parent 00ab272 commit 1ea301e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/color_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ void calcColorTransform( lut1d_t * pShaper, int nLutSize1d,

// Calculate the virtual white point adaptation
glm::mat3x3 whitePointDestAdaptation = glm::mat3x3( 1.f ); // identity
if ( destVirtualWhite.x != 0.f && destVirtualWhite.y != 0.f )
if ( destVirtualWhite.x > 0.01f && destVirtualWhite.y > 0.01f )
{
// if source white is within tiny tolerance of sourceWhitePointOverride
// don't do the override? (aka two quantizations of d65)
Expand Down

0 comments on commit 1ea301e

Please sign in to comment.