mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Revert "Do life cycle state checking outside of graphics driver for"
This reverts commit 06bea05634acdb7a80bb7945dd19c8bac240df2b.
This commit is contained in:
parent
295434151b
commit
a752db392f
@ -1586,7 +1586,8 @@ static bool d3d_frame(void *data, const void *frame,
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
if (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();
|
||||
|
||||
#ifdef _XBOX
|
||||
|
3
gfx/gl.c
3
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 (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)
|
||||
|
@ -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 (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();
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user