diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-08 22:10:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-08 22:10:13 +0400 |
commit | 5019cd179f39ee8f80829bb0d6895e494a66ffa2 (patch) | |
tree | 38727d9646468394de783fd49554873495248638 /source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp | |
parent | a401971cf88e3acadb04243929822da6fcf03174 (diff) |
add threshold blending to opencl too.
Diffstat (limited to 'source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp b/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp index 0507cbed165..f7712f675f2 100644 --- a/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp +++ b/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp @@ -101,8 +101,8 @@ void VariableSizeBokehBlurOperation::executePixel(float *color, int x, int y, vo float readColor[4]; float bokeh[4]; float tempSize[4]; - float multiplier_accum[4] = {0.0f, 0.0f, 0.0f, 0.0f}; - float color_accum[4] = {0.0f, 0.0f, 0.0f, 0.0f}; + float multiplier_accum[4]; + float color_accum[4]; int maxBlur = tileData->maxBlur; #ifdef COM_DEFOCUS_SEARCH @@ -122,8 +122,8 @@ void VariableSizeBokehBlurOperation::executePixel(float *color, int x, int y, vo inputSizeBuffer->readNoCheck(tempSize, x, y); inputProgramBuffer->readNoCheck(readColor, x, y); - add_v4_v4(color_accum, readColor); - add_v4_fl(multiplier_accum, 1.0f); + copy_v4_v4(color_accum, readColor); + copy_v4_fl(multiplier_accum, 1.0f); float size_center = tempSize[0]; const int addXStep = QualityStepHelper::getStep() * COM_NUMBER_OF_CHANNELS; |