macOS with vulkan build fix
This commit is contained in:
parent
f601f4ce70
commit
c7f3fa2b5d
|
@ -54,6 +54,8 @@ typedef struct cocoa_ctx_data
|
||||||
/* TODO/FIXME - static globals */
|
/* TODO/FIXME - static globals */
|
||||||
static unsigned g_vk_minor = 0;
|
static unsigned g_vk_minor = 0;
|
||||||
static unsigned g_vk_major = 0;
|
static unsigned g_vk_major = 0;
|
||||||
|
/* Forward declaration */
|
||||||
|
CocoaView *cocoaview_get(void);
|
||||||
|
|
||||||
static uint32_t cocoa_vk_gfx_ctx_get_flags(void *data)
|
static uint32_t cocoa_vk_gfx_ctx_get_flags(void *data)
|
||||||
{
|
{
|
||||||
|
@ -179,10 +181,14 @@ static void cocoa_vk_gfx_ctx_swap_buffers(void *data)
|
||||||
{
|
{
|
||||||
cocoa_ctx->vk.context.has_acquired_swapchain = false;
|
cocoa_ctx->vk.context.has_acquired_swapchain = false;
|
||||||
if (cocoa_ctx->vk.swapchain == VK_NULL_HANDLE)
|
if (cocoa_ctx->vk.swapchain == VK_NULL_HANDLE)
|
||||||
|
{
|
||||||
retro_sleep(10);
|
retro_sleep(10);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
vulkan_present(&cocoa_ctx->vk, cocoa_ctx->vk.context.current_swapchain_index);
|
vulkan_present(&cocoa_ctx->vk, cocoa_ctx->vk.context.current_swapchain_index);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
vulkan_acquire_next_image(&cocoa_ctx->vk);
|
vulkan_acquire_next_image(&cocoa_ctx->vk);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1867,6 +1867,7 @@ extern const gfx_ctx_driver_t gfx_ctx_videocore;
|
||||||
extern const gfx_ctx_driver_t gfx_ctx_qnx;
|
extern const gfx_ctx_driver_t gfx_ctx_qnx;
|
||||||
extern const gfx_ctx_driver_t gfx_ctx_cgl;
|
extern const gfx_ctx_driver_t gfx_ctx_cgl;
|
||||||
extern const gfx_ctx_driver_t gfx_ctx_cocoagl;
|
extern const gfx_ctx_driver_t gfx_ctx_cocoagl;
|
||||||
|
extern const gfx_ctx_driver_t gfx_ctx_cocoavk;
|
||||||
extern const gfx_ctx_driver_t gfx_ctx_emscripten;
|
extern const gfx_ctx_driver_t gfx_ctx_emscripten;
|
||||||
extern const gfx_ctx_driver_t gfx_ctx_opendingux_fbdev;
|
extern const gfx_ctx_driver_t gfx_ctx_opendingux_fbdev;
|
||||||
extern const gfx_ctx_driver_t gfx_ctx_khr_display;
|
extern const gfx_ctx_driver_t gfx_ctx_khr_display;
|
||||||
|
|
Loading…
Reference in New Issue