summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--3rdparty/bgfx/src/config.h11
1 files 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