From 4eda17d19231ce4b65e9c8c267c55d718cbcfb4c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 13 Mar 2009 09:11:42 -0600 Subject: [PATCH] mesa: glUseProgram() debug code (disabled) --- src/mesa/shader/shader_api.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; -- 2.30.2