From f63bd0189425751241f61df96072ca0f466bb57a Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Tue, 3 Nov 2015 19:05:36 +1100 Subject: [PATCH] Enable metal on El Capitan (nw) --- 3rdparty/bgfx/src/config.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/3rdparty/bgfx/src/config.h b/3rdparty/bgfx/src/config.h index cd055498096..1afea5cd9d4 100644 --- a/3rdparty/bgfx/src/config.h +++ b/3rdparty/bgfx/src/config.h @@ -42,9 +42,14 @@ # endif // BGFX_CONFIG_RENDERER_DIRECT3D12 # ifndef BGFX_CONFIG_RENDERER_METAL -# define BGFX_CONFIG_RENDERER_METAL (0 \ - || BX_PLATFORM_IOS \ - ? 1 : 0) +# if BX_PLATFORM_IOS \ + || (BX_PLATFORM_OSX \ + && defined(MAC_OS_X_VERSION_MAX_ALLOWED) \ + && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)) +# define BGFX_CONFIG_RENDERER_METAL 1 +# else +# define BGFX_CONFIG_RENDERER_METAL 0 +# endif # endif // BGFX_CONFIG_RENDERER_METAL # ifndef BGFX_CONFIG_RENDERER_OPENGL