summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-05-08 12:17:11 -0600
committerBrian Paul <[email protected]>2009-05-08 12:45:08 -0600
commitccaa6463a7a327bb5fe122af41ea77e158439cce (patch)
tree4aede7780a93bbf5939b591880d84dcda65581b3 /src/mesa/shader
parentd5c2ad8514ce8064d83febf647c9e726788b7924 (diff)
mesa: more shader debug code (disabled)
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/shader_api.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c
index 8f414a08891..a8390d30942 100644
--- a/src/mesa/shader/shader_api.c
+++ b/src/mesa/shader/shader_api.c
@@ -1509,6 +1509,10 @@ _mesa_use_program(GLcontext *ctx, GLuint program)
shProg->Shaders[i]->Name,
shProg->Shaders[i]->Type);
}
+ if (shProg->VertexProgram)
+ printf(" vert prog %u\n", shProg->VertexProgram->Base.Id);
+ if (shProg->FragmentProgram)
+ printf(" frag prog %u\n", shProg->FragmentProgram->Base.Id);
}
}
else {