diff options
author | Brian Paul <[email protected]> | 2009-08-14 12:57:39 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-14 12:57:39 -0600 |
commit | 12199ed96ca0dd2307e9893c58300623cfa6c0ee (patch) | |
tree | 2b9a1da6550165371d6477874bae82aecaeb0358 /src/mesa/shader/prog_print.c | |
parent | e3d47515f9b376b00743137529b4ca35a8436c92 (diff) |
mesa: also pass the GPU program to _mesa_append_uniforms_to_file()
We want the post-link program at this points.
Diffstat (limited to 'src/mesa/shader/prog_print.c')
-rw-r--r-- | src/mesa/shader/prog_print.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c index 1bc21099570..3c1c17e0996 100644 --- a/src/mesa/shader/prog_print.c +++ b/src/mesa/shader/prog_print.c @@ -964,7 +964,8 @@ _mesa_write_shader_to_file(const struct gl_shader *shader) * _mesa_write_shader_to_file function. */ void -_mesa_append_uniforms_to_file(const struct gl_shader *shader) +_mesa_append_uniforms_to_file(const struct gl_shader *shader, + const struct gl_program *prog) { const char *type; char filename[100]; @@ -984,7 +985,7 @@ _mesa_append_uniforms_to_file(const struct gl_shader *shader) fprintf(f, "/* First-draw parameters / constants */\n"); fprintf(f, "/*\n"); - _mesa_fprint_parameter_list(f, shader->Program->Parameters); + _mesa_fprint_parameter_list(f, prog->Parameters); fprintf(f, "*/\n"); fclose(f); |