diff options
author | Brian Paul <[email protected]> | 2004-01-11 16:48:14 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-01-11 16:48:14 +0000 |
commit | b673fc49b9d3a436c8fde79d1eb238afd72b55de (patch) | |
tree | 2b2d1e45a608dd47893345c887c5a9139ca5d230 /src/mesa/main/arbparse.c | |
parent | 8bc3ce92a2fa1b8b4ae2b928d4102389f2298917 (diff) |
fix vertex program debugger issues (Bug 874382)
Diffstat (limited to 'src/mesa/main/arbparse.c')
-rw-r--r-- | src/mesa/main/arbparse.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/arbparse.c b/src/mesa/main/arbparse.c index 54fef928f30..4be39533ac2 100644 --- a/src/mesa/main/arbparse.c +++ b/src/mesa/main/arbparse.c @@ -5893,6 +5893,10 @@ parse_arb_program (GLcontext * ctx, GLubyte * inst, struct var_cache **vc_head, (Program->Base.NumInstructions+1)*sizeof(struct fp_instruction)); Program->FPInstructions[Program->Base.NumInstructions].Opcode = FP_OPCODE_END; + /* YYY Wrong Position in program, whatever, at least not random -> crash + Program->Position = parse_position (&inst); + */ + Program->FPInstructions[Program->Base.NumInstructions].StringPos = Program->Position; } else { Program->VPInstructions = @@ -5901,6 +5905,10 @@ parse_arb_program (GLcontext * ctx, GLubyte * inst, struct var_cache **vc_head, (Program->Base.NumInstructions+1)*sizeof(struct vp_instruction)); Program->VPInstructions[Program->Base.NumInstructions].Opcode = VP_OPCODE_END; + /* YYY Wrong Position in program, whatever, at least not random -> crash + Program->Position = parse_position (&inst); + */ + Program->VPInstructions[Program->Base.NumInstructions].StringPos = Program->Position; } /* increment Program->Base.NumInstructions */ |