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>2012-06-19 17:20:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-19 17:20:06 +0400
commitcf2ae76347d48f37ffb69c4e1f946aded5f1099a (patch)
treed6c11653727543e6e9660938a076bd11180ef6ae /source/blender/compositor/operations
parentbb7b8bed8af9f15472c1aeb0d2e338c9588ac59c (diff)
fix for uninitialized memory use in the new compositor.
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r--source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp b/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp
index 3299434a02e..1e19c293314 100644
--- a/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp
+++ b/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp
@@ -47,9 +47,9 @@ void ScreenLensDistortionOperation::initExecution()
drg = 4.f * (kg - kr);
dgb = 4.f * (kb - kg);
- kr4 = kr * 4;
+ kr4 = kr * 4.f;
kg4 = kg * 4.f;
- kb4 *= kb * 4.f;
+ kb4 = kb * 4.f;
cx = 0.5f * (float)getWidth();
cy = 0.5f * (float)getHeight();