mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 14:59:37 +00:00
Reset driver.* handles on driver reinit.
This commit is contained in:
parent
f00c0311d3
commit
e4e0d9c72d
@ -207,6 +207,9 @@ void engine_handle_cmd(struct android_app* android_app, int32_t cmd)
|
||||
if(g_extern.lifecycle_state & (1ULL << RARCH_REENTRANT))
|
||||
{
|
||||
uninit_drivers();
|
||||
driver.video_data = NULL;
|
||||
driver.audio_data = NULL;
|
||||
driver.input_data = NULL;
|
||||
g_android.window_ready = false;
|
||||
}
|
||||
|
||||
|
2
driver.c
2
driver.c
@ -238,10 +238,8 @@ static void adjust_system_rates(void)
|
||||
|
||||
RARCH_LOG("Set audio input rate to: %.2f Hz.\n", g_settings.audio.in_rate);
|
||||
|
||||
#ifndef ANDROID
|
||||
if (driver.video_data)
|
||||
video_set_nonblock_state_func(!g_settings.video.vsync || g_extern.system.force_nonblock);
|
||||
#endif
|
||||
}
|
||||
|
||||
void driver_set_monitor_refresh_rate(float hz)
|
||||
|
Loading…
Reference in New Issue
Block a user