ソースを参照

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

Ravbug 4 年 前
コミット
ffc66a4c3c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/renderer_mtl.mm

+ 1 - 1
src/renderer_mtl.mm

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