Fix use of constant only available on macOS 12+ (#2689)

This commit is contained in:
Ravbug
2021-12-20 13:41:03 -08:00
committed by GitHub
parent 949142a75f
commit ffc66a4c3c

View File

@@ -536,7 +536,7 @@ namespace bgfx { namespace mtl
if (0 != registryId)
{
entry = IOServiceGetMatchingService(kIOMainPortDefault, IORegistryEntryIDMatching(registryId) );
entry = IOServiceGetMatchingService(NULL, IORegistryEntryIDMatching(registryId) );
if (0 != entry)
{