Fix compilers warnings when legacy compositor is disabled

This commit is contained in:
Sergey Sharybin 2012-09-15 07:50:14 +00:00
parent 5dbd603363
commit 8add19d3ec

@ -282,6 +282,8 @@ static void cmp_node_image_update(bNodeTree *ntree, bNode *node)
cmp_node_image_verify_outputs(ntree, node);
}
#ifdef WITH_COMPOSITOR_LEGACY
/* float buffer from the image with matching color management */
float *node_composit_get_float_buffer(RenderData *rd, ImBuf *ibuf, int *alloc)
{
@ -322,8 +324,6 @@ float *node_composit_get_float_buffer(RenderData *rd, ImBuf *ibuf, int *alloc)
return rect;
}
#ifdef WITH_COMPOSITOR_LEGACY
/* note: this function is used for multilayer too, to ensure uniform
* handling with BKE_image_get_ibuf() */
static CompBuf *node_composit_get_image(RenderData *rd, Image *ima, ImageUser *iuser)