projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aafcc26
)
mesa: tweak output of _mesa_write_shader_to_file()
author
Brian Paul
<brianp@vmware.com>
Fri, 6 Feb 2009 17:20:33 +0000
(10:20 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 6 Feb 2009 17:20:33 +0000
(10:20 -0700)
Enclose GPU code in comments to the file can be re-fed back into GLSL compiler.
src/mesa/shader/prog_print.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/prog_print.c
b/src/mesa/shader/prog_print.c
index fa1d3614bfa7079e33909004dda5c5c04f694353..8b0f16e688fb929b3312b0ec95610e9fb69a28ed 100644
(file)
--- 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);