diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp b/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp index acd76fa79a8..e0e5e923654 100644 --- a/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp +++ b/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp @@ -149,9 +149,10 @@ void ScreenLensDistortionOperation::accumulate(MemoryBuffer *buffer, distort_uv(uv, t, xy); buffer->readBilinear(color, xy[0], xy[1]); - sum[a] += (1.0f - tz) * color[a], sum[b] += tz * color[b]; - ++count[a]; - ++count[b]; + sum[a] += (1.0f - tz) * color[a]; + sum[b] += (tz ) * color[b]; + count[a]++; + count[b]++; } } |