mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
program: Clean up after condition code removal.
This commit is contained in:
parent
961ead6746
commit
0d047d10f1
1 changed files with 3 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue