diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-02-07 18:41:41 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-02-07 18:41:41 +0300 |
commit | dd185bf5b87a37f32af32fc5d1ef6e90748fdd64 (patch) | |
tree | a3cc96dd0c779877858052cac4e16b455756fe54 /source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp | |
parent | 8f6912392d93c050e99ddb33b98140c28dd880a3 (diff) |
Fix T47336: compositor color balance offset/slope/power incorrectly clamps HDR colors.
Diffstat (limited to 'source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp b/source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp index 2846642570c..fb97e45afaf 100644 --- a/source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp +++ b/source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp @@ -28,7 +28,7 @@ inline float colorbalance_cdl(float in, float offset, float power, float slope) float x = in * slope + offset; /* prevent NaN */ - CLAMP(x, 0.0f, 1.0f); + if (x < 0.f) x = 0.f; return powf(x, power); } |