mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
fix another pc off-by one
This commit is contained in:
parent
17238f1ee5
commit
31dc7a3c89
1 changed files with 2 additions and 1 deletions
|
|
@ -753,7 +753,8 @@ _mesa_execute_program(GLcontext * ctx,
|
|||
return GL_TRUE; /* Per GL_NV_vertex_program2 spec */
|
||||
}
|
||||
machine->CallStack[machine->StackDepth++] = pc + 1; /* next inst */
|
||||
pc = inst->BranchTarget;
|
||||
/* Subtract 1 here since we'll do pc++ at end of for-loop */
|
||||
pc = inst->BranchTarget - 1;
|
||||
}
|
||||
break;
|
||||
case OPCODE_CMP:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue