mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
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:
parent
aafcc26642
commit
6ce0c6e743
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue