This commit is contained in:
twinaphex 2019-02-10 01:30:12 +01:00
parent 74bddae86e
commit 35ce4dcadc
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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