mesa: don't print name in _mesa_append_uniforms_to_file()
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 30 Jun 2016 04:54:22 +0000 (14:54 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 30 Jun 2016 06:51:25 +0000 (16:51 +1000)
This is only used to print linked shaders which always have a name of 0
so this was pointless.

Acked-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/program/prog_print.c

index 8f46bc56d229a51e053438da1557e47e557b1c76..570b2f5800ad34177b3886304c4d6781421aa6d8 100644 (file)
@@ -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);