summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-06-30 14:52:21 +1000
committerTimothy Arceri <[email protected]>2016-06-30 16:51:25 +1000
commite8c8aa0320a612af0e85809eceac54e5e16cc90d (patch)
treef1bd597316e98bd5db468ffcfcdcd4d6366256ee /src/mesa/program
parent9b41c743cc919ebd18abbedb77d3e80474956863 (diff)
mesa: remove unreachable code from _mesa_write_shader_to_file()
_mesa_write_shader_to_file() is only used to print gl shader objects so Program should never be set as it only gets set for linked shaders. Acked-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/prog_print.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c
index 755d6440e4a..8f46bc56d22 100644
--- a/src/mesa/program/prog_print.c
+++ b/src/mesa/program/prog_print.c
@@ -994,16 +994,6 @@ _mesa_write_shader_to_file(const struct gl_shader *shader)
if (shader->InfoLog) {
fputs(shader->InfoLog, f);
}
- if (shader->CompileStatus && shader->Program) {
- fprintf(f, "/* GPU code */\n");
- fprintf(f, "/*\n");
- _mesa_fprint_program_opt(f, shader->Program, PROG_PRINT_DEBUG, GL_TRUE);
- fprintf(f, "*/\n");
- fprintf(f, "/* Parameters / constants */\n");
- fprintf(f, "/*\n");
- _mesa_fprint_parameter_list(f, shader->Program->Parameters);
- fprintf(f, "*/\n");
- }
fclose(f);
}