summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-14 14:15:55 -0600
committerBrian <[email protected]>2008-03-14 14:15:55 -0600
commite80a2888bb8930b19f278700d29bc7a2d6cab5f5 (patch)
treeec115849622e7a5ae6c0804a06214aac302a98c1 /src/mesa/shader/slang
parent868193d54efd6b181fdd3bacf6c88d5ef5a6bc4c (diff)
init tmpNode to zeros
Diffstat (limited to 'src/mesa/shader/slang')
-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 84c370dc0b9..9c307c6275b 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]) */