Sfoglia il codice sorgente

minor tweaks

tags/post-merge-glsl-compiler-1
Brian 18 anni fa
parent
commit
bf020d8d7f
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/mesa/shader/slang/slang_codegen.c

+ 2
- 2
src/mesa/shader/slang/slang_codegen.c Vedi File

@@ -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

Loading…
Annulla
Salva