diff options
author | Matt Turner <[email protected]> | 2016-03-02 11:01:33 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2016-03-02 12:15:58 -0800 |
commit | 0d047d10f196b72be938d004f2e0fc7e5c253702 (patch) | |
tree | 5b4b578387b428ba8f627dacc0d6822416fb4cf1 /src/mesa | |
parent | 961ead6746ebf7a8ff99ad4ff35adc0007a3e87c (diff) |
program: Clean up after condition code removal.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/program/prog_execute.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/program/prog_execute.c b/src/mesa/program/prog_execute.c index 8f167be60cd..aadf82116e5 100644 --- a/src/mesa/program/prog_execute.c +++ b/src/mesa/program/prog_execute.c @@ -650,11 +650,9 @@ _mesa_execute_program(struct gl_context * ctx, program->Instructions[inst->BranchTarget].Opcode == OPCODE_ENDIF); /* eval condition */ - if (inst->SrcReg[0].File != PROGRAM_UNDEFINED) { - GLfloat a[4]; - fetch_vector1(&inst->SrcReg[0], machine, a); - cond = (a[0] != 0.0F); - } + GLfloat a[4]; + fetch_vector1(&inst->SrcReg[0], machine, a); + cond = (a[0] != 0.0F); if (DEBUG_PROG) { printf("IF: %d\n", cond); } |