mirror of
https://github.com/holub/mame
synced 2025-10-04 08:28:39 +03:00
Fix BGFX build on older OS X systems (nw)
The Vulkan renderer has to be disabled on Yosemite and older because its backend depends on Metal.
This commit is contained in:
parent
0cd3ea1d19
commit
73c4665039
2
3rdparty/bgfx/src/config.h
vendored
2
3rdparty/bgfx/src/config.h
vendored
@ -97,7 +97,7 @@
|
|||||||
|| BX_PLATFORM_LINUX \
|
|| BX_PLATFORM_LINUX \
|
||||||
|| BX_PLATFORM_WINDOWS \
|
|| BX_PLATFORM_WINDOWS \
|
||||||
|| BX_PLATFORM_NX \
|
|| BX_PLATFORM_NX \
|
||||||
|| BX_PLATFORM_OSX \
|
|| (BX_PLATFORM_OSX >= 101100) \
|
||||||
? 1 : 0)
|
? 1 : 0)
|
||||||
# endif // BGFX_CONFIG_RENDERER_VULKAN
|
# endif // BGFX_CONFIG_RENDERER_VULKAN
|
||||||
|
|
||||||
|
@ -1366,6 +1366,14 @@ end
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if _OPTIONS["targetos"]=="macosx" and _OPTIONS["gcc"]~=nil then
|
||||||
|
if string.find(_OPTIONS["gcc"], "clang") and (version < 80000) then
|
||||||
|
defines {
|
||||||
|
"TARGET_OS_OSX=1",
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
defines {
|
defines {
|
||||||
"__STDC_LIMIT_MACROS",
|
"__STDC_LIMIT_MACROS",
|
||||||
"__STDC_FORMAT_MACROS",
|
"__STDC_FORMAT_MACROS",
|
||||||
|
Loading…
Reference in New Issue
Block a user