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
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2008-02-14 18:14:01 +0300
committerJoseph Eagar <joeedh@gmail.com>2008-02-14 18:14:01 +0300
commit4b784f4311f724e983de32799e27d03ab199abb4 (patch)
treee92b3b88fb89774e7448213a6c354931c08caa65 /source/blender/nodes
parent09cb8a9f422cfa90201340a6735f8d9683f0bb42 (diff)
stupid me! if you move var declarations sometimes you have to add
assignments outside of the var declarations!
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/intern/CMP_nodes/CMP_image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_image.c b/source/blender/nodes/intern/CMP_nodes/CMP_image.c
index 9a2f6fc3df8..6a82e8a9254 100644
--- a/source/blender/nodes/intern/CMP_nodes/CMP_image.c
+++ b/source/blender/nodes/intern/CMP_nodes/CMP_image.c
@@ -205,7 +205,7 @@ 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;
+ float *pixel;
/*first duplicate stackbuf->rect, since it's just a pointer
to the source imbuf, and we don't want to change that.*/
@@ -213,6 +213,7 @@ static void node_composit_exec_image(void *data, bNode *node, bNodeStack **in, b
/*premul the image*/
+ pixel = stackbuf->rect;
for (i=0; i<stackbuf->x*stackbuf->y; i++, pixel += 4) {
pixel[0] *= pixel[3];
pixel[1] *= pixel[3];