mesa: fix stand-alone glslcompiler build
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 28 Oct 2008 23:03:35 +0000 (17:03 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 28 Oct 2008 23:03:49 +0000 (17:03 -0600)
src/mesa/drivers/glslcompiler/glslcompiler.c

index 62a366858c4e49ddc12fe945f74cc731178ba7c0..34cce977c8646daff9948884e4366a6ed4dd42f3 100644 (file)
@@ -226,12 +226,8 @@ PrintShaderInstructions(GLuint shader, FILE *f)
 {
    GET_CURRENT_CONTEXT(ctx);
    struct gl_shader *sh = _mesa_lookup_shader(ctx, shader);
-   GLuint i;
-
-   for (i = 0; i < sh->NumPrograms; i++) {
-      struct gl_program *prog = sh->Programs[i];
-      _mesa_print_program_opt(prog, Options.Mode, Options.LineNumbers);
-   }
+   struct gl_program *prog = sh->Program;
+   _mesa_print_program_opt(prog, Options.Mode, Options.LineNumbers);
 }