From 837cf84fc85f72462bc0c429749fa0bd6977deba Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 21 Jun 2018 08:26:11 +0200 Subject: [PATCH] Put this around an ifdef --- ui/drivers/ui_cocoa.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/drivers/ui_cocoa.m b/ui/drivers/ui_cocoa.m index 5d1705fcf8..081c4df749 100644 --- a/ui/drivers/ui_cocoa.m +++ b/ui/drivers/ui_cocoa.m @@ -257,13 +257,15 @@ static char** waiting_argv; switch (vt) { case APPLE_VIEW_TYPE_VULKAN: case APPLE_VIEW_TYPE_METAL: +#if defined(HAVE_METAL) || defined(HAVE_VULKAN) { NSView *v = [CocoaView get]; v.wantsLayer = YES; v.layer = CAMetalLayer.layer; _renderView = v; - break; } +#endif + break; case APPLE_VIEW_TYPE_OPENGL: {