From d1db16b5d3bb76f2f4be1a9611820cf90878c3a7 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 24 Jul 2012 09:00:58 +0000 Subject: [PATCH] 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. --- .../blender/compositor/operations/COM_GlareFogGlowOperation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp b/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp index 5452e779968..7f7429bf2e6 100644 --- a/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp +++ b/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp @@ -260,6 +260,7 @@ void convolve(float *dst, MemoryBuffer *in1, MemoryBuffer *in2) 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;