From 22452f6cb2563f81ab8e580dd6590a85a2e4be76 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 17 Feb 2016 01:23:55 +0100 Subject: [PATCH] Ifdef hw_render_context_is_vulkan --- gfx/video_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 7f2ad59d4e..bb5f857aba 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -242,10 +242,12 @@ const char* config_get_video_driver_options(void) return char_list_new_special(STRING_LIST_VIDEO_DRIVERS, NULL); } +#ifdef HAVE_VULKAN static bool hw_render_context_is_vulkan(enum retro_hw_context_type type) { return type == RETRO_HW_CONTEXT_VULKAN; } +#endif static bool hw_render_context_is_gl(enum retro_hw_context_type type) { @@ -268,7 +270,6 @@ static bool find_video_driver(void) driver_ctx_info_t drv; settings_t *settings = config_get_ptr(); -#if (defined(HAVE_OPENGL) && defined(HAVE_FBO)) || defined(HAVE_VULKAN) if (video_driver_ctl(RARCH_DISPLAY_CTL_IS_HW_CONTEXT, NULL)) { struct retro_hw_render_callback *hwr = @@ -294,7 +295,6 @@ static bool find_video_driver(void) if (current_video) return true; } -#endif if (frontend_driver_has_get_video_driver_func()) {