diff options
author | Brian Paul <brianp@vmware.com> | 2009-01-07 12:31:14 -0700 |
---|---|---|
committer | Alan Hourihane <alanh@vmware.com> | 2009-01-09 11:16:40 +0000 |
commit | 5273a5f0d7b433150cdb16737bb295d76d0594a0 (patch) | |
tree | 0f34ea2cf4c7aa1631149e409e6b24001356f466 /src | |
parent | 28c503d4bb7b46c593d346f142b05f35afe0d0d1 (diff) |
mesa: fix off-by-one bug in _mesa_delete_instructions()
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/program.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index 37962f0e9b..7a3b827352 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; } } |