1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-22 21:40:40 +00:00

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

@ -305,12 +305,12 @@ 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();
uninit_libretro_sym(&core);
break;
case CORE_CTL_RETRO_UNLOAD_GAME:
video_driver_callback_destroy_context();
video_driver_unset_callback();
core.retro_unload_game();
break;
case CORE_CTL_RETRO_RUN: