commit | 6ce0c6e743b27cc284e8f164585cfe5892cd662a | [log] [tgz] |
---|---|---|
author | Brian Paul <brianp@vmware.com> | Fri Feb 06 10:20:33 2009 -0700 |
committer | Brian Paul <brianp@vmware.com> | Fri Feb 06 10:20:33 2009 -0700 |
tree | dbb12fc6c8bf38f2ec8830affa5d2b0d6746e48c | |
parent | aafcc26642d5243944a1abb816c2657f644c0649 [diff] |
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 fa1d361..8b0f16e 100644 --- a/src/mesa/shader/prog_print.c +++ b/src/mesa/shader/prog_print.c
@@ -902,7 +902,9 @@ } 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);