mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 07:50:20 +01:00
gallium/hud: replace malloc w/ MALLOC
To match the FREE() called used later. Fixes things on Windows. Reviewed-by: Marek Olšák <maraeo@gmail.com>
This commit is contained in:
parent
9276961223
commit
a408ea9692
1 changed files with 1 additions and 1 deletions
|
|
@ -621,7 +621,7 @@ hud_pane_add_graph(struct hud_pane *pane, struct hud_graph *gr)
|
|||
}
|
||||
|
||||
assert(pane->num_graphs < Elements(colors));
|
||||
gr->vertices = malloc(pane->max_num_vertices * sizeof(float) * 2);
|
||||
gr->vertices = MALLOC(pane->max_num_vertices * sizeof(float) * 2);
|
||||
gr->color[0] = colors[pane->num_graphs][0];
|
||||
gr->color[1] = colors[pane->num_graphs][1];
|
||||
gr->color[2] = colors[pane->num_graphs][2];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue