Mesa (master): slang: Fix return value check.
MichaŠKról
michal at kemper.freedesktop.org
Tue Nov 10 10:26:17 PST 2009
Module: Mesa
Branch: master
Commit: 28039ffdc8a7eb7d8578534a46b78ae43d16112c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=28039ffdc8a7eb7d8578534a46b78ae43d16112c
Author: Michal Krol <michal at vmware.com>
Date: Tue Nov 10 19:25:17 2009 +0100
slang: Fix return value check.
---
src/mesa/shader/slang/slang_emit.c | 2 +-
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 18d0146..c0e4b27 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;
}
More information about the mesa-commit
mailing list