diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index a9bc1693a72..03aba66bb3b 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -1508,14 +1508,15 @@ hud_parse_env_var(struct hud_context *hud, struct pipe_screen *screen, if (!pane) break; - y += height + hud->font.glyph_height * (pane->num_graphs + 2); - y_simple += hud->font.glyph_height * (pane->num_graphs + 1); - height = 100; - if (pane && pane->num_graphs) { + y += height + hud->font.glyph_height * (pane->num_graphs + 2); + y_simple += hud->font.glyph_height * (pane->num_graphs + 1); list_addtail(&pane->head, &hud->pane_list); pane = NULL; } + + height = 100; + break; case ';':