diff options
author | Brian Paul <[email protected]> | 2009-09-15 09:45:18 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-15 09:45:18 -0600 |
commit | 5d526ed21ac9f1ec9220c2adb4c905893eb9d990 (patch) | |
tree | 2e9c6b0794d903aa9c137d591f956619a51608d7 /src/mesa/shader/shader_api.c | |
parent | 2b992dc327e02a412c0cc8c5d015ac534114848c (diff) | |
parent | 799631acb18be93afab29e27241cde3780672e98 (diff) |
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
Diffstat (limited to 'src/mesa/shader/shader_api.c')
-rw-r--r-- | src/mesa/shader/shader_api.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c index 54a25dfaf07..178b7d0dbaf 100644 --- a/src/mesa/shader/shader_api.c +++ b/src/mesa/shader/shader_api.c @@ -1474,6 +1474,21 @@ _mesa_link_program(GLcontext *ctx, GLuint program) FLUSH_VERTICES(ctx, _NEW_PROGRAM); _slang_link(ctx, program, shProg); + + /* debug code */ + if (0) { + GLuint i; + + _mesa_printf("Link %u shaders in program %u: %s\n", + shProg->NumShaders, shProg->Name, + shProg->LinkStatus ? "Success" : "Failed"); + + for (i = 0; i < shProg->NumShaders; i++) { + _mesa_printf(" shader %u, type 0x%x\n", + shProg->Shaders[i]->Name, + shProg->Shaders[i]->Type); + } + } } |