[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48078] trunk/blender/source/blender/ compositor/operations/COM_ScreenLensDistortionOperation.cpp: fix for uninitialized memory use in the new compositor.

Campbell Barton ideasman42 at gmail.com
Tue Jun 19 15:20:14 CEST 2012


Revision: 48078
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48078
Author:   campbellbarton
Date:     2012-06-19 13:20:06 +0000 (Tue, 19 Jun 2012)
Log Message:
-----------
fix for uninitialized memory use in the new compositor.

Modified Paths:
--------------
    trunk/blender/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp

Modified: trunk/blender/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp
===================================================================
--- trunk/blender/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp	2012-06-19 12:19:49 UTC (rev 48077)
+++ trunk/blender/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp	2012-06-19 13:20:06 UTC (rev 48078)
@@ -47,9 +47,9 @@
 	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();
 




More information about the Bf-blender-cvs mailing list