summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_emit.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-03-14 14:14:13 -0600
committerBrian Paul <[email protected]>2008-03-14 14:14:13 -0600
commita9aef5fccd0a71bc29845c5af9aacdab5e2234ea (patch)
tree8a3ec6aa6f40bc11f4c5f8f67cbde64a7c7ab172 /src/mesa/shader/slang/slang_emit.c
parent7dc449d406a88fbb92aedfacfa3869176ba2cb31 (diff)
mesa: init tmpNode to zeros
Diffstat (limited to 'src/mesa/shader/slang/slang_emit.c')
-rw-r--r--src/mesa/shader/slang/slang_emit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c
index 3763b567055..382b13ff056 100644
--- a/src/mesa/shader/slang/slang_emit.c
+++ b/src/mesa/shader/slang/slang_emit.c
@@ -727,6 +727,7 @@ emit_clamp(slang_emit_info *emitInfo, slang_ir_node *n)
* dest for this clamp() is an output reg, we can't use that reg for
* the intermediate result. Use a temp register instead.
*/
+ _mesa_bzero(&tmpNode, sizeof(tmpNode));
alloc_temp_storage(emitInfo, &tmpNode, n->Store->Size);
/* tmp = max(ch[0], ch[1]) */