mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
mesa: fix off-by-one bug in _mesa_delete_instructions()
This commit is contained in:
parent
83a74521cf
commit
19c877c327
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue