mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-28 05:49:03 +08:00
Sync changes from upstream repository
Co-authored-by: Andrew le Bihan <andy@mcneel.com> Co-authored-by: croudyj <croudyj@gmail.com> Co-authored-by: Dale Fugier <dale@mcneel.com> Co-authored-by: Dan Rigdon-Bel <dan@mcneel.com> Co-authored-by: Greg Arden <greg@mcneel.com> Co-authored-by: Jussi Aaltonen <jussi@mcneel.com> Co-authored-by: kike-garbo <kike@mcneel.com> Co-authored-by: piac <giulio@mcneel.com> Co-authored-by: Steve Baer <steve@mcneel.com> Co-authored-by: Will Pearson <will@mcneel.com>
This commit is contained in:
@@ -157,10 +157,10 @@ void ON_LinearWorkflow::ApplyPreProcessGamma(ON_4fColor& col, bool for_texture)
|
||||
if (!check)
|
||||
return;
|
||||
|
||||
const auto gamma = PreProcessGamma();
|
||||
const float gamma = PreProcessGamma();
|
||||
if (!IsFloatEqual(gamma, 1.0f))
|
||||
{
|
||||
auto* f = col.FloatArray();
|
||||
float* f = col.FloatArray();
|
||||
|
||||
ON_ASSERT((f[0] >= 0.0) && (f[1] >= 0.0) && (f[2] >= 0.0));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user