diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index e870d6eb7f..31a3c97729 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -1166,7 +1166,7 @@ static bool gl_frame(void *data, const void *frame, glBindTexture(GL_TEXTURE_2D, gl->texture[gl->tex_index]); /* Can be NULL for frame dupe / NULL render. */ - if (frame && video_info->libretro_running) + if (frame) { #ifdef HAVE_FBO if (!gl->hw_render_fbo_init) diff --git a/gfx/drivers/vulkan.c b/gfx/drivers/vulkan.c index 037aa3cd42..bf11f453a7 100644 --- a/gfx/drivers/vulkan.c +++ b/gfx/drivers/vulkan.c @@ -1597,7 +1597,7 @@ static bool vulkan_frame(void *data, const void *frame, /* Upload texture */ performance_counter_start(©_frame); - if (frame && !vk->hw.enable && video_info->libretro_running) + if (frame && !vk->hw.enable) { unsigned y; uint8_t *dst = NULL; diff --git a/gfx/video_driver.c b/gfx/video_driver.c index b32c2a693a..e682147593 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -2307,8 +2307,6 @@ void video_driver_build_info(video_frame_info_t *video_info) if (!settings->menu.pause_libretro) video_info->libretro_running = (rarch_ctl(RARCH_CTL_IS_INITED, NULL) && !rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL)); - else if (!video_info->menu_is_alive) - video_info->libretro_running = true; #else video_info->menu_is_alive = false; video_info->menu_footer_opacity = 0.0f; diff --git a/runloop.c b/runloop.c index 0f4b2000af..fb0bd6fd9b 100644 --- a/runloop.c +++ b/runloop.c @@ -689,7 +689,6 @@ static enum runloop_state runloop_check_state( uint64_t current_input, uint64_t old_input, uint64_t trigger_input, - bool menu_is_alive, unsigned *sleep_ms) { static bool old_focus = true; @@ -707,7 +706,7 @@ static enum runloop_state runloop_check_state( if (runloop_cmd_triggered(trigger_input, RARCH_FULLSCREEN_TOGGLE_KEY)) { - bool fullscreen_toggled = !runloop_paused || menu_is_alive; + bool fullscreen_toggled = !runloop_paused || menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL); if (fullscreen_toggled) command_event(CMD_EVENT_FULLSCREEN_TOGGLE, NULL); @@ -758,7 +757,7 @@ static enum runloop_state runloop_check_state( } #ifdef HAVE_MENU - if (menu_is_alive) + if (menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL)) { menu_ctx_iterate_t iter; core_poll(); @@ -795,7 +794,7 @@ static enum runloop_state runloop_check_state( #ifdef HAVE_MENU if (menu_event_kb_is_set(RETROK_F1) == 1) { - if (menu_is_alive) + if (menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL)) { if (rarch_ctl(RARCH_CTL_IS_INITED, NULL) && !rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL)) @@ -809,7 +808,7 @@ static enum runloop_state runloop_check_state( runloop_cmd_triggered(trigger_input, RARCH_MENU_TOGGLE)) || rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL)) { - if (menu_is_alive) + if (menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL)) { if (rarch_ctl(RARCH_CTL_IS_INITED, NULL) && !rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL)) @@ -824,7 +823,7 @@ static enum runloop_state runloop_check_state( else menu_event_kb_set(false, RETROK_F1); - if (menu_is_alive) + if (menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL)) { if (!settings->menu.throttle_framerate && !settings->fastforward_ratio) return RUNLOOP_STATE_MENU_ITERATE; @@ -1090,7 +1089,6 @@ int runloop_iterate(unsigned *sleep_ms) current_input, old_input, trigger_input, - menu_is_alive, sleep_ms)) { case RUNLOOP_STATE_QUIT: