From: Brian Paul Date: Tue, 28 Oct 2008 23:03:35 +0000 (-0600) Subject: mesa: fix stand-alone glslcompiler build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1100866aa1efd51603fe0b92337afecdc723561c;p=mesa.git mesa: fix stand-alone glslcompiler build --- diff --git a/src/mesa/drivers/glslcompiler/glslcompiler.c b/src/mesa/drivers/glslcompiler/glslcompiler.c index 62a366858c4..34cce977c86 100644 --- a/src/mesa/drivers/glslcompiler/glslcompiler.c +++ b/src/mesa/drivers/glslcompiler/glslcompiler.c @@ -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); }