summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-02-08 14:10:19 -0700
committerBrian <[email protected]>2007-02-08 14:10:19 -0700
commit34af2b7194ad473c8ae20bcff933910f8386c3f0 (patch)
treec424d7f28761106839e960355b09a4798e40cbc9 /src/mesa
parentc81aedeaeca431b6e91e34559eaabfce80a9796f (diff)
consolidate BRA with BRK, CONT
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/swrast/s_fragprog.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mesa/swrast/s_fragprog.c b/src/mesa/swrast/s_fragprog.c
index ce028f72bf2..fe41c0b5f45 100644
--- a/src/mesa/swrast/s_fragprog.c
+++ b/src/mesa/swrast/s_fragprog.c
@@ -709,18 +709,14 @@ execute_program( GLcontext *ctx,
break;
case OPCODE_ENDSUB: /* end subroutine */
break;
- case OPCODE_BRA: /* conditional branch */
- if (eval_condition(machine, inst)) {
- /* take branch */
- pc = inst->BranchTarget - 1;
- }
- break;
+ case OPCODE_BRA: /* branch (conditional) */
+ /* fall-through */
case OPCODE_BRK: /* break out of loop (conditional) */
/* fall-through */
case OPCODE_CONT: /* continue loop (conditional) */
- /* Subtract 1 here since we'll do pc++ at end of for-loop */
if (eval_condition(machine, inst)) {
/* take branch */
+ /* Subtract 1 here since we'll do pc++ at end of for-loop */
pc = inst->BranchTarget - 1;
}
break;