Reset driver.* handles on driver reinit.

This commit is contained in:
Themaister 2012-12-25 00:01:06 +01:00
parent f00c0311d3
commit e4e0d9c72d
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -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)