diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-02-12 18:34:26 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-02-12 18:34:26 +0300 |
commit | 66e69965b15fa03634fcc741a4ec67e1e865cc83 (patch) | |
tree | 17e514d1bb40850710fb5dff83613f5d93d813fc | |
parent | f695c1524c0a78d909f39da23c3c21e806ab1c49 (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.
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_defocus.c | 4 |
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; } |