fix another pc off-by one

This commit is contained in:
Brian 2007-03-27 15:21:35 -06:00
parent 17238f1ee5
commit 31dc7a3c89

View file

@ -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: