[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49167] trunk/blender/source/blender/ compositor/operations/COM_GlareFogGlowOperation.cpp: Fix corrupted frames producing by fog glare node

Sergey Sharybin sergey.vfx at gmail.com
Tue Jul 24 11:00:59 CEST 2012


Revision: 49167
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49167
Author:   nazgul
Date:     2012-07-24 09:00:58 +0000 (Tue, 24 Jul 2012)
Log Message:
-----------
Fix corrupted frames producing by fog glare node

Seems to be simple non-initialized buffer used in math, but additional
check would be welcome here.

At least now result doesn't seems to be corrupted and seems to behaving
the same way as non-tile compositor.

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

Modified: trunk/blender/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp
===================================================================
--- trunk/blender/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp	2012-07-24 07:08:33 UTC (rev 49166)
+++ trunk/blender/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp	2012-07-24 09:00:58 UTC (rev 49167)
@@ -260,6 +260,7 @@
 	float *imageBuffer = in1->getBuffer();
 
 	MemoryBuffer *rdst = new MemoryBuffer(NULL, in1->getRect());
+	memset(rdst->getBuffer(), 0, rdst->getWidth() * rdst->getHeight() * COM_NUMBER_OF_CHANNELS * sizeof(float));
 
 	// convolution result width & height
 	w2 = 2 * kernelWidth - 1;




More information about the Bf-blender-cvs mailing list