mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(CocoaGL) Silence warning when building without HAVE_VULKAN
This commit is contained in:
parent
9394a31277
commit
278063d157
@ -835,7 +835,10 @@ static void *cocoagl_gfx_ctx_init(video_frame_info_t *video_info, void *video_dr
|
||||
#ifdef HAVE_VULKAN
|
||||
[apple_platform setViewType:APPLE_VIEW_TYPE_VULKAN];
|
||||
if (!vulkan_context_init(&cocoa_ctx->vk, VULKAN_WSI_MVK_MACOS))
|
||||
goto error;
|
||||
{
|
||||
free(cocoa_ctx);
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
case GFX_CTX_NONE:
|
||||
@ -844,10 +847,6 @@ static void *cocoagl_gfx_ctx_init(video_frame_info_t *video_info, void *video_dr
|
||||
}
|
||||
|
||||
return cocoa_ctx;
|
||||
|
||||
error:
|
||||
free(cocoa_ctx);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef HAVE_COCOA_METAL
|
||||
|
Loading…
x
Reference in New Issue
Block a user