slang: Fix return value check.
authorMichal Krol <michal@vmware.com>
Tue, 10 Nov 2009 18:25:17 +0000 (19:25 +0100)
committerMichal Krol <michal@vmware.com>
Tue, 10 Nov 2009 18:25:51 +0000 (19:25 +0100)
src/mesa/shader/slang/slang_emit.c

index 18d0146277e0fe844ccbbe9561328de06fe7daa4..c0e4b27aa5f6bd60095c95ea66fa3edd6db944a2 100644 (file)
@@ -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;
       }