mesa: glUseProgram() debug code (disabled)
authorBrian Paul <brianp@vmware.com>
Fri, 13 Mar 2009 15:11:42 +0000 (09:11 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 13 Mar 2009 15:23:43 +0000 (09:23 -0600)
src/mesa/shader/shader_api.c

index b8b34bb2b454570f066dbd9a72c292a3abfd24e0..9900acc75b4bd4ac41b57ab8c0bc3fb25d805495 100644 (file)
@@ -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;