Skip to content
Snippets Groups Projects
Commit 19c877c3 authored by Brian Paul's avatar Brian Paul
Browse files

mesa: fix off-by-one bug in _mesa_delete_instructions()

parent 83a74521
No related branches found
No related tags found
Loading
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment