projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5d5b27
)
mesa: glUseProgram() debug code (disabled)
author
Brian Paul
<brianp@vmware.com>
Fri, 13 Mar 2009 15:11:42 +0000
(09:11 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 13 Mar 2009 15:23:43 +0000
(09:23 -0600)
src/mesa/shader/shader_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/shader_api.c
b/src/mesa/shader/shader_api.c
index b8b34bb2b454570f066dbd9a72c292a3abfd24e0..9900acc75b4bd4ac41b57ab8c0bc3fb25d805495 100644
(file)
--- 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;