diff options
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_driver_query.c')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_driver_query.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/hud/hud_driver_query.c b/src/gallium/auxiliary/hud/hud_driver_query.c index a7d28bc33fb..40ea120efb4 100644 --- a/src/gallium/auxiliary/hud/hud_driver_query.c +++ b/src/gallium/auxiliary/hud/hud_driver_query.c @@ -379,9 +379,10 @@ hud_pipe_query_install(struct hud_batch_query_context **pbq, } hud_pane_add_graph(pane, gr); + pane->type = type; /* must be set before updating the max_value */ + if (pane->max_value < max_value) hud_pane_set_max_value(pane, max_value); - pane->type = type; return; fail_info: |