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:
authorCampbell Barton <ideasman42@gmail.com>2016-03-05 01:13:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-03-05 01:13:16 +0300
commitfea07c1a63fdfe3bf25d77d862e83bdf024347b8 (patch)
treea859d2c511c53f5653a23d6992165aa6a5ddece7 /source/blender/compositor/operations/COM_GlareThresholdOperation.cpp
parentacebfbb6669b4f0c546068777c7f11146aad3def (diff)
Cleanup: unnecessary comma use
Also use SWAP macro
Diffstat (limited to 'source/blender/compositor/operations/COM_GlareThresholdOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_GlareThresholdOperation.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_GlareThresholdOperation.cpp b/source/blender/compositor/operations/COM_GlareThresholdOperation.cpp
index d2bd7cbeeab..f54e75a6b35 100644
--- a/source/blender/compositor/operations/COM_GlareThresholdOperation.cpp
+++ b/source/blender/compositor/operations/COM_GlareThresholdOperation.cpp
@@ -52,7 +52,10 @@ void GlareThresholdOperation::executePixelSampled(float output[4], float x, floa
this->m_inputProgram->readSampled(output, x, y, sampler);
if (IMB_colormanagement_get_luminance(output) >= threshold) {
- output[0] -= threshold, output[1] -= threshold, output[2] -= threshold;
+ output[0] -= threshold;
+ output[1] -= threshold;
+ output[2] -= threshold;
+
output[0] = max(output[0], 0.0f);
output[1] = max(output[1], 0.0f);
output[2] = max(output[2], 0.0f);