From: Timothy Arceri Date: Thu, 30 Jun 2016 04:54:22 +0000 (+1000) Subject: mesa: don't print name in _mesa_append_uniforms_to_file() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=378f07ccb5bff7857d87a4fe5dff0b5e83f99895;p=mesa.git 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 --- 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);