gallium/hud: append results to files instead of overwriting them

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23706>
This commit is contained in:
Marek Olšák 2023-06-11 01:10:09 -04:00
parent 6e5eb0afd3
commit 2f1e62f831

View file

@ -1082,7 +1082,7 @@ hud_graph_set_dump_file(struct hud_graph *gr, const char *hud_dump_dir, bool to_
strcpy(dump_file, hud_dump_dir);
strcat(dump_file, PATH_SEP);
strcat_without_spaces(dump_file, gr->name);
gr->fd = fopen(dump_file, "w+");
gr->fd = fopen(dump_file, "a+");
free(dump_file);
}
} else if (to_stdout) {