mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
Merge pull request #12324 from devnexen/macos_vulkan_build_fix
macOS with vulkan build fix
This commit is contained in:
commit
8466a213e8
@ -54,6 +54,8 @@ typedef struct cocoa_ctx_data
|
||||
/* TODO/FIXME - static globals */
|
||||
static unsigned g_vk_minor = 0;
|
||||
static unsigned g_vk_major = 0;
|
||||
/* Forward declaration */
|
||||
CocoaView *cocoaview_get(void);
|
||||
|
||||
static uint32_t cocoa_vk_gfx_ctx_get_flags(void *data)
|
||||
{
|
||||
@ -179,9 +181,13 @@ static void cocoa_vk_gfx_ctx_swap_buffers(void *data)
|
||||
{
|
||||
cocoa_ctx->vk.context.has_acquired_swapchain = false;
|
||||
if (cocoa_ctx->vk.swapchain == VK_NULL_HANDLE)
|
||||
{
|
||||
retro_sleep(10);
|
||||
}
|
||||
else
|
||||
{
|
||||
vulkan_present(&cocoa_ctx->vk, cocoa_ctx->vk.context.current_swapchain_index);
|
||||
}
|
||||
}
|
||||
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_cgl;
|
||||
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_opendingux_fbdev;
|
||||
extern const gfx_ctx_driver_t gfx_ctx_khr_display;
|
||||
|
Loading…
x
Reference in New Issue
Block a user