diff options
author | Joseph Eagar <joeedh@gmail.com> | 2008-02-14 17:57:41 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2008-02-14 17:57:41 +0300 |
commit | 09cb8a9f422cfa90201340a6735f8d9683f0bb42 (patch) | |
tree | 61373208b5920653be27794c7ea76205cd4f1279 /source | |
parent | ac5d28a13c6db6837fd1f00cfecd9cef06e8d92a (diff) |
in my tiredness I didn't declare some vars at the top of the block.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_image.c b/source/blender/nodes/intern/CMP_nodes/CMP_image.c index 659629457f8..9a2f6fc3df8 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_image.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_image.c @@ -204,14 +204,14 @@ static void node_composit_exec_image(void *data, bNode *node, bNodeStack **in, b /*respect image premul option*/ if (stackbuf->type==CB_RGBA && ima->flag & IMA_DO_PREMUL) { + int i; + float *pixel = stackbuf->rect; /*first duplicate stackbuf->rect, since it's just a pointer to the source imbuf, and we don't want to change that.*/ stackbuf->rect = MEM_dupallocN(stackbuf->rect); /*premul the image*/ - int i; - float *pixel = stackbuf->rect; for (i=0; i<stackbuf->x*stackbuf->y; i++, pixel += 4) { pixel[0] *= pixel[3]; |