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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to