Move this to CORE_CTL_RETRO_DEINIT

This commit is contained in:
twinaphex 2016-01-27 19:25:44 +01:00
parent f6fcb95dea
commit 7a896596a1
2 changed files with 2 additions and 2 deletions

View File

@ -395,8 +395,6 @@ static void event_deinit_core(bool reinit)
cheevos_unload();
#endif
video_driver_callback_destroy_context();
video_driver_unset_callback();
core_ctl(CORE_CTL_RETRO_UNLOAD_GAME, NULL);
core_ctl(CORE_CTL_RETRO_DEINIT, NULL);

View File

@ -275,6 +275,8 @@ bool core_ctl(enum core_ctl_state state, void *data)
core.retro_init();
break;
case CORE_CTL_RETRO_DEINIT:
video_driver_callback_destroy_context();
video_driver_unset_callback();
core.retro_deinit();
break;
case CORE_CTL_RETRO_UNLOAD_GAME: