summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-03-13 09:11:42 -0600
committerBrian Paul <[email protected]>2009-03-13 09:23:43 -0600
commit4eda17d19231ce4b65e9c8c267c55d718cbcfb4c (patch)
treea1989a77285a0ae23e3379ebdc2630e90871625b /src/mesa
parentd5d5b27224f5d189158ec4218ba4f269a26278bd (diff)
mesa: glUseProgram() debug code (disabled)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/shader_api.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c
index b8b34bb2b45..9900acc75b4 100644
--- a/src/mesa/shader/shader_api.c
+++ b/src/mesa/shader/shader_api.c
@@ -1495,6 +1495,17 @@ _mesa_use_program(GLcontext *ctx, GLuint program)
"glUseProgram(program %u not linked)", program);
return;
}
+
+ /* debug code */
+ if (0) {
+ GLuint i;
+ _mesa_printf("Use Shader %u\n", shProg->Name);
+ for (i = 0; i < shProg->NumShaders; i++) {
+ _mesa_printf(" shader %u, type 0x%x\n",
+ shProg->Shaders[i]->Name,
+ shProg->Shaders[i]->Type);
+ }
+ }
}
else {
shProg = NULL;