mesa: more shader debug code (disabled)
authorBrian Paul <brianp@vmware.com>
Fri, 8 May 2009 18:17:11 +0000 (12:17 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 8 May 2009 18:45:08 +0000 (12:45 -0600)
src/mesa/shader/shader_api.c

index 8f414a088913095afbb0320d3c9e325a9a7140c6..a8390d30942796df7095d3cad392a05af6ad9391 100644 (file)
@@ -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 {