diff --git a/frontend/menu/disp/glui.c b/frontend/menu/disp/glui.c index a3978bc02b..483cd96691 100644 --- a/frontend/menu/disp/glui.c +++ b/frontend/menu/disp/glui.c @@ -107,6 +107,9 @@ static void glui_frame(void) if (!driver.menu || !gl) return; + if (g_extern.lifecycle_state & (1ULL << MODE_GAME)) + return; + line_height = g_settings.video.font_size * 4 / 3; glyph_width = line_height / 2; glui_margin = gl->win_width / 20 ; diff --git a/gfx/gl.c b/gfx/gl.c index 5504ecd025..fe85f30775 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -1592,7 +1592,8 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei gl_set_prev_texture(gl, &tex_info); #if defined(HAVE_MENU) - if (g_extern.lifecycle_state & (1ULL << MODE_MENU) && driver.menu_ctx && driver.menu_ctx->frame) + if ((g_extern.lifecycle_state & (1ULL << MODE_MENU)) + && driver.menu_ctx && driver.menu_ctx->frame) driver.menu_ctx->frame(); if (gl->menu_texture_enable)