summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-11-10 19:25:17 +0100
committerMichal Krol <[email protected]>2009-11-10 19:25:51 +0100
commit28039ffdc8a7eb7d8578534a46b78ae43d16112c (patch)
tree76bd3e2e601fc4534b40c12e8b36737d07abd814 /src
parent5e17c89eadd1a1a5555caa235cf7696e335d25f5 (diff)
slang: Fix return value check.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c
index 18d0146277e..c0e4b27aa5f 100644
--- a/src/mesa/shader/slang/slang_emit.c
+++ b/src/mesa/shader/slang/slang_emit.c
@@ -802,7 +802,7 @@ emit_arith(slang_emit_info *emitInfo, slang_ir_node *n)
emit(emitInfo, n->Children[0]->Children[0]); /* A */
emit(emitInfo, n->Children[0]->Children[1]); /* B */
emit(emitInfo, n->Children[1]); /* C */
- if (alloc_node_storage(emitInfo, n, -1)) { /* dest */
+ if (!alloc_node_storage(emitInfo, n, -1)) { /* dest */
return NULL;
}