Move destroy and unsetting of video driver callback to RETRO_UNLOAD_GAME

time
This commit is contained in:
twinaphex 2016-02-07 19:29:40 +01:00
parent 76b726d154
commit 772aa6ef0c

View File

@ -305,12 +305,12 @@ bool core_ctl(enum core_ctl_state state, void *data)
core.retro_init(); core.retro_init();
break; break;
case CORE_CTL_RETRO_DEINIT: case CORE_CTL_RETRO_DEINIT:
video_driver_callback_destroy_context();
video_driver_unset_callback();
core.retro_deinit(); core.retro_deinit();
uninit_libretro_sym(&core); uninit_libretro_sym(&core);
break; break;
case CORE_CTL_RETRO_UNLOAD_GAME: case CORE_CTL_RETRO_UNLOAD_GAME:
video_driver_callback_destroy_context();
video_driver_unset_callback();
core.retro_unload_game(); core.retro_unload_game();
break; break;
case CORE_CTL_RETRO_RUN: case CORE_CTL_RETRO_RUN: