summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-01-19 14:45:23 +0000
committerBrian Paul <[email protected]>2005-01-19 14:45:23 +0000
commit140f99f81cf801ac4ea69fa4da3e9648da3b1046 (patch)
tree2d9156359db0199d0f0b68a299cfaa032907975c /src/mesa/shader
parent7948bc02ed3e2a95eb31c6d60e6c019d1f40ccdb (diff)
make sure the new instruction Data pointer is set to NULL
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/arbprogparse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index b306900006b..10f0a1b3244 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -2691,6 +2691,8 @@ parse_fp_instruction (GLcontext * ctx, GLubyte ** inst,
/* Record the position in the program string for debugging */
fp->StringPos = Program->Position;
+ fp->Data = NULL;
+
/* OP_ALU_INST or OP_TEX_INST */
instClass = *(*inst)++;
@@ -3113,6 +3115,8 @@ parse_vp_instruction (GLcontext * ctx, GLubyte ** inst,
/* Record the position in the program string for debugging */
vp->StringPos = Program->Position;
+ vp->Data = NULL;
+
vp->SrcReg[0].RelAddr = vp->SrcReg[1].RelAddr = vp->SrcReg[2].RelAddr = 0;
for (a = 0; a < 4; a++) {
@@ -3706,6 +3710,7 @@ parse_arb_program (GLcontext * ctx, GLubyte * inst, struct var_cache **vc_head,
Program->Position = parse_position (&inst);
*/
Program->FPInstructions[Program->Base.NumInstructions].StringPos = Program->Position;
+ Program->FPInstructions[Program->Base.NumInstructions].Data = NULL;
}
else {
Program->VPInstructions =
@@ -3718,6 +3723,7 @@ parse_arb_program (GLcontext * ctx, GLubyte * inst, struct var_cache **vc_head,
Program->Position = parse_position (&inst);
*/
Program->VPInstructions[Program->Base.NumInstructions].StringPos = Program->Position;
+ Program->VPInstructions[Program->Base.NumInstructions].Data = NULL;
}
/* increment Program->Base.NumInstructions */