diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-10-28 17:03:35 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-10-28 18:28:53 -0600 |
commit | d14a4cdafa939f1d0feecbffa390f1d9993d0bb2 (patch) | |
tree | 83733eb6af0ab0a34f46eae8b777eec85e036b70 | |
parent | 9c3be93551e261b7546eb780dd5ded9b417ce1f3 (diff) |
mesa: fix stand-alone glslcompiler build
-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 016b53d57a..0ba1a10d43 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); } |