Bugfix #13837
Tonemap didn't correctly accept any buffer type. The coder who added this should check this fix! Any node coder maybe...
This commit is contained in:
parent
3f87319428
commit
70be839859
@ -130,13 +130,16 @@ static void node_composit_exec_tonemap(void *data, bNode *node, bNodeStack **in,
|
||||
if ((img==NULL) || (out[0]->hasoutput==0)) return;
|
||||
|
||||
if (img->type != CB_RGBA)
|
||||
new = typecheck_compbuf(img, CB_RGBA);
|
||||
else
|
||||
new = dupalloc_compbuf(img);
|
||||
img = typecheck_compbuf(img, CB_RGBA);
|
||||
|
||||
new = dupalloc_compbuf(img);
|
||||
|
||||
tonemap(node->storage, new, img);
|
||||
|
||||
out[0]->data = new;
|
||||
|
||||
if(img!=in[0]->data)
|
||||
free_compbuf(img);
|
||||
}
|
||||
|
||||
static void node_composit_init_tonemap(bNode* node)
|
||||
|
Loading…
Reference in New Issue
Block a user