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
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-09-15 11:50:14 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-09-15 11:50:14 +0400
commit8add19d3ece8526f5334acec90fd4c1f1155218c (patch)
tree718fc2ff3a453d1fcd4e8784bc9597c5301a4845 /source
parent5dbd603363c3f4f91b627b759c9992efc2a0ada8 (diff)
Fix compilers warnings when legacy compositor is disabled
Diffstat (limited to 'source')
-rw-r--r--source/blender/nodes/composite/nodes/node_composite_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_image.c b/source/blender/nodes/composite/nodes/node_composite_image.c
index 96a92055ca9..dcc88c7c010 100644
--- a/source/blender/nodes/composite/nodes/node_composite_image.c
+++ b/source/blender/nodes/composite/nodes/node_composite_image.c
@@ -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)