mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 00:32:46 +00:00
Rename RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT to RARCH_DISPLAY_CTL_DEINIT_HW_CONTEXT
This commit is contained in:
parent
702d9d4728
commit
d8bfa7ab7d
@ -530,7 +530,7 @@ static bool uninit_video_input(void)
|
||||
event_cmd_ctl(EVENT_CMD_OVERLAY_DEINIT, NULL);
|
||||
|
||||
if (!video_driver_ctl(RARCH_DISPLAY_CTL_IS_VIDEO_CACHE_CONTEXT, NULL))
|
||||
video_driver_ctl(RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT, NULL);
|
||||
video_driver_ctl(RARCH_DISPLAY_CTL_DEINIT_HW_CONTEXT, NULL);
|
||||
|
||||
if (
|
||||
!input_driver_ctl(RARCH_INPUT_CTL_OWNS_DRIVER, NULL) &&
|
||||
@ -1701,7 +1701,7 @@ bool video_driver_ctl(enum rarch_display_ctl_state state, void *data)
|
||||
break;
|
||||
case RARCH_DISPLAY_CTL_OWNS_DRIVER:
|
||||
return video_driver_data_own;
|
||||
case RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT:
|
||||
case RARCH_DISPLAY_CTL_DEINIT_HW_CONTEXT:
|
||||
if (hw_render->context_destroy)
|
||||
hw_render->context_destroy();
|
||||
|
||||
|
@ -140,7 +140,7 @@ enum rarch_display_ctl_state
|
||||
RARCH_DISPLAY_CTL_SET_OWN_DRIVER,
|
||||
RARCH_DISPLAY_CTL_UNSET_OWN_DRIVER,
|
||||
RARCH_DISPLAY_CTL_OWNS_DRIVER,
|
||||
RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT,
|
||||
RARCH_DISPLAY_CTL_DEINIT_HW_CONTEXT,
|
||||
RARCH_DISPLAY_CTL_SET_VIDEO_CACHE_CONTEXT,
|
||||
RARCH_DISPLAY_CTL_UNSET_VIDEO_CACHE_CONTEXT,
|
||||
RARCH_DISPLAY_CTL_IS_VIDEO_CACHE_CONTEXT,
|
||||
|
@ -309,7 +309,7 @@ bool core_ctl(enum core_ctl_state state, void *data)
|
||||
uninit_libretro_sym(&core);
|
||||
break;
|
||||
case CORE_CTL_RETRO_UNLOAD_GAME:
|
||||
video_driver_ctl(RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT, NULL);
|
||||
video_driver_ctl(RARCH_DISPLAY_CTL_DEINIT_HW_CONTEXT, NULL);
|
||||
core.retro_unload_game();
|
||||
break;
|
||||
case CORE_CTL_RETRO_RUN:
|
||||
|
Loading…
x
Reference in New Issue
Block a user