From: Brian Paul Date: Fri, 6 Feb 2009 17:20:33 +0000 (-0700) Subject: mesa: tweak output of _mesa_write_shader_to_file() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ce0c6e743b27cc284e8f164585cfe5892cd662a;p=mesa.git 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. --- diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c index fa1d3614bfa..8b0f16e688f 100644 --- a/src/mesa/shader/prog_print.c +++ b/src/mesa/shader/prog_print.c @@ -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);