Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2016-02-07 18:41:41 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2016-02-07 18:41:41 +0300
commitdd185bf5b87a37f32af32fc5d1ef6e90748fdd64 (patch)
treea3cc96dd0c779877858052cac4e16b455756fe54 /source/blender/compositor
parent8f6912392d93c050e99ddb33b98140c28dd880a3 (diff)
Fix T47336: compositor color balance offset/slope/power incorrectly clamps HDR colors.
Diffstat (limited to 'source/blender/compositor')
-rw-r--r--source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp2
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);
}