glsl: call _mesa_postprocess_program(), disabled
authorBrian Paul <brianp@vmware.com>
Wed, 17 Jun 2009 13:44:04 +0000 (07:44 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Jun 2009 15:58:29 +0000 (09:58 -0600)
src/mesa/shader/slang/slang_link.c

index 5ea89d2ff3e6b1aaef52a81350b21b92a49dcba0..f6032d1e9adedb51970e33d8bdc460b7f495ae57 100644 (file)
@@ -843,6 +843,14 @@ _slang_link(GLcontext *ctx,
       }
    }
 
+   /* Debug: */
+   if (0) {
+      if (shProg->VertexProgram)
+         _mesa_postprocess_program(ctx, &shProg->VertexProgram->Base);
+      if (shProg->FragmentProgram)
+         _mesa_postprocess_program(ctx, &shProg->FragmentProgram->Base);
+   }
+
    if (ctx->Shader.Flags & GLSL_DUMP) {
       _mesa_printf("Varying vars:\n");
       _mesa_print_parameter_list(shProg->Varying);