summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-01-07 12:31:14 -0700
committerBrian Paul <brianp@vmware.com>2009-01-08 15:35:23 -0700
commit19c877c3278f5bfc48f55b2ee35ec5f6769e4c90 (patch)
treeaa006d8ddf4174a4e87a07584ee8a6bcedee638c /src
parent83a74521cfd2e81dd98ee1d84aff42a660613740 (diff)
mesa: fix off-by-one bug in _mesa_delete_instructions()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c
index 738891a0293..d114828ec6a 100644
--- a/src/mesa/shader/program.c
+++ b/src/mesa/shader/program.c
@@ -571,7 +571,7 @@ _mesa_delete_instructions(struct gl_program *prog, GLuint start, GLuint count)
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;
}
}