summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-01-08 14:23:42 +0000
committerBrian Paul <[email protected]>2004-01-08 14:23:42 +0000
commit088eb4fb9baef8350bc7af5fadcca646e2829fe0 (patch)
tree7df64c0689d5766a2ec2e099b054c0ec66a562c9 /src
parent332a6741d5a5399ba33fd5f038f3c5a6736366f1 (diff)
set StringPos field in parse_vp_instruction (Mesa bug 873011)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/arbparse.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/main/arbparse.c b/src/mesa/main/arbparse.c
index c8088c18484..54fef928f30 100644
--- a/src/mesa/main/arbparse.c
+++ b/src/mesa/main/arbparse.c
@@ -1,8 +1,8 @@
/*
* Mesa 3-D graphics library
- * Version: 5.1
+ * Version: 6.0
*
- * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -5313,6 +5313,9 @@ parse_vp_instruction (GLcontext * ctx, GLubyte ** inst,
/* The actual opcode name */
code = *(*inst)++;
+ /* Record the position in the program string for debugging */
+ vp->StringPos = Program->Position;
+
vp->SrcReg[0].RelAddr = vp->SrcReg[1].RelAddr = vp->SrcReg[2].RelAddr = 0;
for (a = 0; a < 4; a++) {