diff options
author | Brian <[email protected]> | 2007-03-23 14:44:34 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-03-23 14:44:34 -0600 |
commit | bf020d8d7f719dfea7ea3c65bd2833df6439b59e (patch) | |
tree | 7abce53b68e4bb651c596ea7d636619e720f219f /src/mesa | |
parent | 2bdac09d16904334424a53d4c7436408a5cc3ca5 (diff) |
minor tweaks
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index f1be713c05b..4e41aa87002 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -1369,7 +1369,7 @@ _slang_gen_while(slang_assemble_ctx * A, const slang_operation *oper) loop->Children[0] = new_seq(breakIf, body); /* Do infinite loop detection */ - if (loop->BranchNode == 0 && isConst && constTrue) { + if (!loop->BranchNode && isConst && constTrue) { /* infinite loop detected */ A->CurLoop = prevLoop; /* clean-up */ slang_info_log_error(A->log, "Infinite loop detected!"); @@ -1485,7 +1485,7 @@ static slang_ir_node * _slang_gen_if(slang_assemble_ctx * A, const slang_operation *oper) { /* - * eval expr (child[0]), updating condcodes + * eval expr (child[0]) * IF expr THEN * if-body code * ELSE |