mesa: tweak output of _mesa_write_shader_to_file()

Enclose GPU code in comments to the file can be re-fed back into GLSL compiler.
This commit is contained in:
Brian Paul 2009-02-06 10:20:33 -07:00
parent aafcc26642
commit 6ce0c6e743

View file

@ -902,7 +902,9 @@ _mesa_write_shader_to_file(const struct gl_shader *shader)
}
else {
fprintf(f, "/* GPU code */\n");
fprintf(f, "/*\n");
_mesa_fprint_program_opt(f, shader->Program, PROG_PRINT_DEBUG, GL_TRUE);
fprintf(f, "*/\n");
}
fclose(f);