diff options
author | Brian <[email protected]> | 2007-03-27 15:21:35 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-03-27 16:06:47 -0600 |
commit | 31dc7a3c890a831f9a0d20dc394ddbe854a05718 (patch) | |
tree | e2429e659a0e4de00923cadb40710f05b4677bd7 /src/mesa | |
parent | 17238f1ee52ddb9d9ef4282498de3b4406245a7f (diff) |
fix another pc off-by one
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/prog_execute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_execute.c b/src/mesa/shader/prog_execute.c index 37240820e79..0438d6a7b99 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: |