From 35ce4dcadc213c8710a0e923127e2e098b2d5996 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 10 Feb 2019 01:30:12 +0100 Subject: [PATCH] Updates --- gfx/drivers_context/cocoa_gl_ctx_metal.m | 8 -------- gfx/drivers_context/cocoa_gl_shared.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gfx/drivers_context/cocoa_gl_ctx_metal.m b/gfx/drivers_context/cocoa_gl_ctx_metal.m index 624e13d1d1..96da468b3e 100644 --- a/gfx/drivers_context/cocoa_gl_ctx_metal.m +++ b/gfx/drivers_context/cocoa_gl_ctx_metal.m @@ -181,14 +181,6 @@ static bool cocoagl_gfx_ctx_set_video_mode(void *data, return true; } -#ifdef HAVE_VULKAN -static void *cocoagl_gfx_ctx_get_context_data(void *data) -{ - cocoa_ctx_data_t *cocoa_ctx = (cocoa_ctx_data_t*)data; - return &cocoa_ctx->vk.context; -} -#endif - static bool cocoagl_gfx_ctx_set_resize(void *data, unsigned width, unsigned height) { #ifdef HAVE_VULKAN diff --git a/gfx/drivers_context/cocoa_gl_shared.h b/gfx/drivers_context/cocoa_gl_shared.h index f304ecc4df..a57fe98cda 100644 --- a/gfx/drivers_context/cocoa_gl_shared.h +++ b/gfx/drivers_context/cocoa_gl_shared.h @@ -646,3 +646,11 @@ static bool cocoagl_gfx_ctx_bind_api(void *data, enum gfx_ctx_api api, return true; } + +#ifdef HAVE_VULKAN +static void *cocoagl_gfx_ctx_get_context_data(void *data) +{ + cocoa_ctx_data_t *cocoa_ctx = (cocoa_ctx_data_t*)data; + return &cocoa_ctx->vk.context; +} +#endif