Move destroy and unsetting of video driver callback to RETRO_UNLOAD_GAME
time
This commit is contained in:
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:
|
||||
|
|
Loading…
Reference in New Issue