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:
authorCampbell Barton <ideasman42@gmail.com>2011-03-29 05:47:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-03-29 05:47:03 +0400
commite72c278f47d27aef76dc6ca976bfcba668dce260 (patch)
tree5a93bb5a90e4904865fbb08752123c7e232deeb4 /source/blender/nodes/intern
parent5f5ec9ec3cdff0fe7b0c3e3c2df791677ab053ec (diff)
2 fixes for un-initialized memory uses, when running testfile: teapot_envmap.blend
boxsample() expected talpha to be set beforehand, also dont set the int value as a float since its confusing.
Diffstat (limited to 'source/blender/nodes/intern')
-rw-r--r--source/blender/nodes/intern/TEX_nodes/TEX_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/TEX_nodes/TEX_output.c b/source/blender/nodes/intern/TEX_nodes/TEX_output.c
index 63a3a7ae15c..30b5aee7832 100644
--- a/source/blender/nodes/intern/TEX_nodes/TEX_output.c
+++ b/source/blender/nodes/intern/TEX_nodes/TEX_output.c
@@ -65,7 +65,7 @@ static void exec(void *data, bNode *node, bNodeStack **in, bNodeStack **UNUSED(o
tex_input_rgba(&target->tr, in[0], &params, cdata->thread);
target->tin = (target->tr + target->tg + target->tb) / 3.0f;
- target->talpha = 1.0f;
+ target->talpha = 1;
if(target->nor) {
if(in[1] && in[1]->hasinput)