From d8bfa7ab7dafe61212a02c696492aca2f73916dd Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 7 Feb 2016 20:15:58 +0100 Subject: [PATCH] Rename RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT to RARCH_DISPLAY_CTL_DEINIT_HW_CONTEXT --- gfx/video_driver.c | 4 ++-- gfx/video_driver.h | 2 +- libretro_version_1.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index f2ce158e88..b557f16f77 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -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(); diff --git a/gfx/video_driver.h b/gfx/video_driver.h index 23425551c0..74b58d5cb2 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -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, diff --git a/libretro_version_1.c b/libretro_version_1.c index f2364f245a..4b34598ba5 100644 --- a/libretro_version_1.c +++ b/libretro_version_1.c @@ -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: