mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
gallium/hud: set the dump file streams to line buffered
Flush the HUD value streams to the dump files after every newline. v2: check that fopen succeeded (Julien) Reviewed-and-Tested-by: Julien Isorce <jisorce@oblong.com>
This commit is contained in:
parent
01d0c5a922
commit
5589fd89e1
1 changed files with 2 additions and 0 deletions
|
|
@ -972,6 +972,8 @@ hud_graph_set_dump_file(struct hud_graph *gr)
|
|||
strcat(dump_file, "/");
|
||||
strcat_without_spaces(dump_file, gr->name);
|
||||
gr->fd = fopen(dump_file, "w+");
|
||||
if (gr->fd)
|
||||
setvbuf(gr->fd, NULL, _IOLBF, 0);
|
||||
free(dump_file);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue