From 378f07ccb5bff7857d87a4fe5dff0b5e83f99895 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Thu, 30 Jun 2016 14:54:22 +1000 Subject: mesa: don't print name in _mesa_append_uniforms_to_file() This is only used to print linked shaders which always have a name of 0 so this was pointless. Acked-by: Iago Toral Quiroga --- src/mesa/program/prog_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c index 8f46bc56d22..570b2f5800a 100644 --- a/src/mesa/program/prog_print.c +++ b/src/mesa/program/prog_print.c @@ -1017,7 +1017,7 @@ _mesa_append_uniforms_to_file(const struct gl_shader *shader) else type = "vert"; - _mesa_snprintf(filename, sizeof(filename), "shader_%u.%s", shader->Name, type); + _mesa_snprintf(filename, sizeof(filename), "shader.%s", type); f = fopen(filename, "a"); /* append */ if (!f) { fprintf(stderr, "Unable to open %s for appending\n", filename); -- cgit v1.2.3