From bf020d8d7f719dfea7ea3c65bd2833df6439b59e Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 23 Mar 2007 14:44:34 -0600 Subject: [PATCH] minor tweaks --- src/mesa/shader/slang/slang_codegen.c | 4 ++-- 1 file 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 -- 2.30.2