From ffc66a4c3c7b91d3609bbc3402ee620086aeb90f Mon Sep 17 00:00:00 2001 From: Ravbug Date: Mon, 20 Dec 2021 13:41:03 -0800 Subject: [PATCH] Fix use of constant only available on macOS 12+ (#2689) --- src/renderer_mtl.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer_mtl.mm b/src/renderer_mtl.mm index 4f28393b2..9f7ad54ab 100644 --- a/src/renderer_mtl.mm +++ b/src/renderer_mtl.mm @@ -536,7 +536,7 @@ namespace bgfx { namespace mtl if (0 != registryId) { - entry = IOServiceGetMatchingService(kIOMainPortDefault, IORegistryEntryIDMatching(registryId) ); + entry = IOServiceGetMatchingService(NULL, IORegistryEntryIDMatching(registryId) ); if (0 != entry) {