commit | 5273a5f0d7b433150cdb16737bb295d76d0594a0 | [log] [tgz] |
---|---|---|
author | Brian Paul <brianp@vmware.com> | Wed Jan 07 12:31:14 2009 -0700 |
committer | Alan Hourihane <alanh@vmware.com> | Fri Jan 09 11:16:40 2009 +0000 |
tree | 0f34ea2cf4c7aa1631149e409e6b24001356f466 | |
parent | 28c503d4bb7b46c593d346f142b05f35afe0d0d1 [diff] [blame] |
mesa: fix off-by-one bug in _mesa_delete_instructions()
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index 37962f0..7a3b827 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c
@@ -570,7 +570,7 @@ for (i = 0; i < prog->NumInstructions; i++) { struct prog_instruction *inst = prog->Instructions + i; if (inst->BranchTarget > 0) { - if (inst->BranchTarget >= start) { + if (inst->BranchTarget > start) { inst->BranchTarget -= count; } }