diff options
author | 2015-11-03 19:05:36 +1100 | |
---|---|---|
committer | 2015-11-03 19:05:57 +1100 | |
commit | f63bd0189425751241f61df96072ca0f466bb57a (patch) | |
tree | 18b9de23756b6ca0f268fcbe77ceced73adcd9e3 /3rdparty/bgfx/src | |
parent | 70b81eb7c8f15016b42137b970317d922d32d670 (diff) |
Enable metal on El Capitan (nw)
Diffstat (limited to '3rdparty/bgfx/src')
-rw-r--r-- | 3rdparty/bgfx/src/config.h | 11 |
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 |