mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Take this out - too unsafe - fixes D3D12 driver
This commit is contained in:
parent
cb8107a154
commit
718d65d95d
@ -1109,10 +1109,6 @@ void win32_check_window(bool *quit, bool *resize,
|
||||
*width = g_win32_resize_width;
|
||||
*height = g_win32_resize_height;
|
||||
g_win32_resized = false;
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
rarch_ctl(RARCH_CTL_SET_DEFERRED_MENU_CONTEXT_RESET, NULL);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -609,9 +609,6 @@ void x11_check_window(void *data, bool *quit,
|
||||
*width = new_width;
|
||||
*height = new_height;
|
||||
*resize = true;
|
||||
#ifdef HAVE_MENU
|
||||
rarch_ctl(RARCH_CTL_SET_DEFERRED_MENU_CONTEXT_RESET, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
x11_alive(data);
|
||||
|
@ -558,10 +558,6 @@ static void cocoagl_gfx_ctx_check_window(void *data, bool *quit,
|
||||
*width = new_width;
|
||||
*height = new_height;
|
||||
*resize = true;
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
rarch_ctl(RARCH_CTL_SET_DEFERRED_MENU_CONTEXT_RESET, NULL);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1102,10 +1102,6 @@ static void gfx_ctx_wl_check_window(void *data, bool *quit,
|
||||
*height = new_height;
|
||||
*resize = true;
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
rarch_ctl(RARCH_CTL_SET_DEFERRED_MENU_CONTEXT_RESET, NULL);
|
||||
#endif
|
||||
|
||||
wl->last_buffer_scale = wl->buffer_scale;
|
||||
}
|
||||
|
||||
|
16
retroarch.c
16
retroarch.c
@ -849,9 +849,6 @@ static retro_keyboard_event_t runloop_key_event = NULL;
|
||||
static retro_keyboard_event_t runloop_frontend_key_event = NULL;
|
||||
static core_option_manager_t *runloop_core_options = NULL;
|
||||
static msg_queue_t *runloop_msg_queue = NULL;
|
||||
#ifdef HAVE_MENU
|
||||
static bool runloop_set_deferred_menu_context_reset = false;
|
||||
#endif
|
||||
|
||||
static unsigned runloop_pending_windowed_scale = 0;
|
||||
static unsigned runloop_max_frames = 0;
|
||||
@ -22959,11 +22956,6 @@ bool rarch_ctl(enum rarch_ctl_state state, void *data)
|
||||
{
|
||||
switch(state)
|
||||
{
|
||||
case RARCH_CTL_SET_DEFERRED_MENU_CONTEXT_RESET:
|
||||
#ifdef HAVE_MENU
|
||||
runloop_set_deferred_menu_context_reset = true;
|
||||
#endif
|
||||
break;
|
||||
case RARCH_CTL_CORE_IS_RUNNING:
|
||||
return runloop_core_running;
|
||||
case RARCH_CTL_BSV_MOVIE_IS_INITED:
|
||||
@ -24300,14 +24292,6 @@ static enum runloop_state runloop_check_state(void)
|
||||
|
||||
if (menu_data)
|
||||
{
|
||||
if (runloop_set_deferred_menu_context_reset)
|
||||
{
|
||||
if (menu_data->driver_ctx && menu_data->driver_ctx->context_reset)
|
||||
menu_data->driver_ctx->context_reset(menu_data->userdata, video_driver_is_threaded_internal());
|
||||
video_driver_frame_count = 0;
|
||||
runloop_set_deferred_menu_context_reset = false;
|
||||
}
|
||||
|
||||
if (BIT64_GET(menu_data->state, MENU_STATE_RENDER_FRAMEBUFFER)
|
||||
!= BIT64_GET(menu_data->state, MENU_STATE_RENDER_MESSAGEBOX))
|
||||
BIT64_SET(menu_data->state, MENU_STATE_RENDER_FRAMEBUFFER);
|
||||
|
@ -175,7 +175,6 @@ enum rarch_ctl_state
|
||||
RARCH_CTL_CORE_OPTIONS_DEINIT,
|
||||
RARCH_CTL_CORE_OPTIONS_DISPLAY,
|
||||
RARCH_CTL_CORE_IS_RUNNING,
|
||||
RARCH_CTL_SET_DEFERRED_MENU_CONTEXT_RESET,
|
||||
|
||||
/* BSV Movie */
|
||||
RARCH_CTL_BSV_MOVIE_IS_INITED
|
||||
|
Loading…
x
Reference in New Issue
Block a user