Fix T47336: compositor color balance offset/slope/power incorrectly clamps HDR colors.

This commit is contained in:
Brecht Van Lommel
2016-02-07 16:41:41 +01:00
parent 8f6912392d
commit dd185bf5b8

View File

@@ -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);
}