fix for uninitialized memory use in the new compositor.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 19 Jun 2012 13:20:06 +0000 (13:20 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 19 Jun 2012 13:20:06 +0000 (13:20 +0000)
source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp

index 3299434a02eb95cbe379ff927df1e00bfa7e730b..1e19c29331439e0e24dd498099b28b8296d80d8a 100644 (file)
@@ -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();