mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Do life cycle state checking outside of graphics driver for
menu display driver's 'frame' function
This commit is contained in:
parent
259d75fa6e
commit
06bea05634
@ -1586,8 +1586,7 @@ static bool d3d_frame(void *data, const void *frame,
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
if (g_extern.lifecycle_state & (1ULL << MODE_MENU)
|
||||
&& driver.menu_ctx && driver.menu_ctx->frame)
|
||||
if (driver.menu_ctx && driver.menu_ctx->frame)
|
||||
driver.menu_ctx->frame();
|
||||
|
||||
#ifdef _XBOX
|
||||
|
3
gfx/gl.c
3
gfx/gl.c
@ -1592,8 +1592,7 @@ 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 (driver.menu_ctx && driver.menu_ctx->frame)
|
||||
driver.menu_ctx->frame();
|
||||
|
||||
if (gl->menu_texture_enable)
|
||||
|
@ -490,7 +490,7 @@ static bool sdl2_gfx_frame(void *data, const void *frame, unsigned width,
|
||||
SDL_RenderCopyEx(vid->renderer, vid->frame.tex, NULL, NULL, vid->rotation, NULL, SDL_FLIP_NONE);
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
if (g_extern.lifecycle_state & (1ULL << MODE_MENU) && driver.menu_ctx && driver.menu_ctx->frame)
|
||||
if (driver.menu_ctx && driver.menu_ctx->frame)
|
||||
driver.menu_ctx->frame();
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user