Composite: Scale Node didn't correctly pass on 1-channel buffers when no
scaling happened, resulting in crashes.
This commit is contained in:
Ton Roosendaal
2006-12-28 12:07:11 +00:00
parent ebdc0d04a5
commit 3fb1f2986f

View File

@@ -5152,7 +5152,7 @@ static void node_composit_exec_scale(void *data, bNode *node, bNodeStack **in, b
if(ibuf->rect_float == cbuf->rect) {
/* no scaling happened. */
stackbuf= pass_on_compbuf(cbuf);
stackbuf= pass_on_compbuf(in[0]->data);
}
else {
stackbuf= alloc_compbuf(newx, newy, CB_RGBA, 0);