mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
mesa: glUseProgram() debug code (disabled)
This commit is contained in:
parent
d5d5b27224
commit
4eda17d192
1 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue