diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_MixLightenOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_MixLightenOperation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_MixLightenOperation.cpp b/source/blender/compositor/operations/COM_MixLightenOperation.cpp index 32d28b785b7..6a06d5ab6e1 100644 --- a/source/blender/compositor/operations/COM_MixLightenOperation.cpp +++ b/source/blender/compositor/operations/COM_MixLightenOperation.cpp @@ -39,13 +39,13 @@ void MixLightenOperation::executePixel(float* outputValue, float x, float y, Pix } float tmp; tmp=value * inputColor2[0]; - if(tmp > inputColor1[0]) outputValue[0]= tmp; + if (tmp > inputColor1[0]) outputValue[0]= tmp; else outputValue[0] = inputColor1[0]; tmp=value * inputColor2[1]; - if(tmp > inputColor1[1]) outputValue[1]= tmp; + if (tmp > inputColor1[1]) outputValue[1]= tmp; else outputValue[1] = inputColor1[1]; tmp=value * inputColor2[2]; - if(tmp > inputColor1[2]) outputValue[2]= tmp; + if (tmp > inputColor1[2]) outputValue[2]= tmp; else outputValue[2] = inputColor1[2]; outputValue[3] = inputColor1[3]; } |