Răsfoiți Sursa

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

Ravbug 4 ani în urmă
părinte
comite
ffc66a4c3c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/renderer_mtl.mm

+ 1 - 1
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)
 						{