summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-01-07 12:31:14 -0700
committerAlan Hourihane <[email protected]>2009-01-09 11:16:40 +0000
commit5273a5f0d7b433150cdb16737bb295d76d0594a0 (patch)
tree0f34ea2cf4c7aa1631149e409e6b24001356f466 /src/mesa/shader
parent28c503d4bb7b46c593d346f142b05f35afe0d0d1 (diff)
mesa: fix off-by-one bug in _mesa_delete_instructions()
Diffstat (limited to 'src/mesa/shader')
-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 37962f0e9bb..7a3b827352a 100644
--- a/src/mesa/shader/program.c
+++ b/src/mesa/shader/program.c
@@ -570,7 +570,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;
}
}