diff options
author | Brian Paul <[email protected]> | 2008-10-28 17:03:35 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-10-28 17:03:49 -0600 |
commit | 1100866aa1efd51603fe0b92337afecdc723561c (patch) | |
tree | b2ace1cc4321688102c076616d52f770912bfb44 /src/mesa | |
parent | 0cade4de4f74f6b0e86fb6622e2fc370c73fd840 (diff) |
mesa: fix stand-alone glslcompiler build
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/glslcompiler/glslcompiler.c | 8 |
1 files changed, 2 insertions, 6 deletions
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); } |