summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-03-27 15:21:35 -0600
committerBrian <brian@yutani.localnet.net>2007-03-27 16:06:47 -0600
commit31dc7a3c890a831f9a0d20dc394ddbe854a05718 (patch)
treee2429e659a0e4de00923cadb40710f05b4677bd7
parent17238f1ee52ddb9d9ef4282498de3b4406245a7f (diff)
fix another pc off-by one
-rw-r--r--src/mesa/shader/prog_execute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_execute.c b/src/mesa/shader/prog_execute.c
index 37240820e7..0438d6a7b9 100644
--- a/src/mesa/shader/prog_execute.c
+++ b/src/mesa/shader/prog_execute.c
@@ -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: