We want the post-link program at this points.
* _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];
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);
_mesa_write_shader_to_file(const struct gl_shader *shader);
extern 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);
#endif /* PROG_PRINT_H */