Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-12 18:34:26 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-12 18:34:26 +0300
commit66e69965b15fa03634fcc741a4ec67e1e865cc83 (patch)
tree17e514d1bb40850710fb5dff83613f5d93d813fc /source/blender/nodes/intern/CMP_nodes/CMP_defocus.c
parentf695c1524c0a78d909f39da23c3c21e806ab1c49 (diff)
Bugfix: when defocus node had nothing to do and just passed on the buffer,
it didn't correctly deal with pointers, gave a crash in some circumstances.
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_defocus.c')
-rw-r--r--source/blender/nodes/intern/CMP_nodes/CMP_defocus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c b/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c
index a7db8c2d53d..866bf406d1e 100644
--- a/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c
+++ b/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c
@@ -779,9 +779,7 @@ static void node_composit_exec_defocus(void *data, bNode *node, bNodeStack **in,
// if image not valid type or fstop==infinite (128), nothing to do, pass in to out
if (((img->type!=CB_RGBA) && (img->type!=CB_VAL)) || ((nqd->no_zbuf==0) && (nqd->fstop==128.f))) {
- new = alloc_compbuf(img->x, img->y, img->type, 0);
- new->rect = img->rect;
- out[0]->data = new;
+ out[0]->data = pass_on_compbuf(img);
return;
}