diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-19 17:20:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-19 17:20:06 +0400 |
commit | cf2ae76347d48f37ffb69c4e1f946aded5f1099a (patch) | |
tree | d6c11653727543e6e9660938a076bd11180ef6ae | |
parent | bb7b8bed8af9f15472c1aeb0d2e338c9588ac59c (diff) |
fix for uninitialized memory use in the new compositor.
-rw-r--r-- | source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp | 4 |
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(); |