summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-04-21 14:47:57 -0600
committerBrian Paul <[email protected]>2009-04-21 16:21:32 -0600
commit8a22e24faef918a0f6d05ef6e6417a65cb3eaeb1 (patch)
tree72b1229630c1a7762a865659a67b0eb996a3b5c3 /src
parentac1fc3f46511a449c812651dda686d4aaac39753 (diff)
mesa: print internal.current[i] attrib
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/prog_statevars.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/shader/prog_statevars.c b/src/mesa/shader/prog_statevars.c
index 37a3f1fc8ca..058d4bbafb7 100644
--- a/src/mesa/shader/prog_statevars.c
+++ b/src/mesa/shader/prog_statevars.c
@@ -816,7 +816,10 @@ append_token(char *dst, gl_state_index k)
break;
/* BEGIN internal state vars */
case STATE_INTERNAL:
- append(dst, "(internal)");
+ append(dst, ".internal.");
+ break;
+ case STATE_CURRENT_ATTRIB:
+ append(dst, "current");
break;
case STATE_NORMAL_SCALE:
append(dst, "normalScale");
@@ -986,7 +989,9 @@ _mesa_program_state_string(const gl_state_index state[STATE_LENGTH])
break;
case STATE_INTERNAL:
append_token(str, state[1]);
- break;
+ if (state[1] == STATE_CURRENT_ATTRIB)
+ append_index(str, state[2]);
+ break;
default:
_mesa_problem(NULL, "Invalid state in _mesa_program_state_string");
break;