internal/graphicsdriver/metal/mtl: bug fix: fail to resolve Metal.framework path with Xcode 15

Updates #2732
Closes #2784
This commit is contained in:
Hajime Hoshi 2023-09-24 16:15:50 +09:00
parent 92424319a2
commit a76c1f7efc

View File

@ -32,7 +32,7 @@ import (
func init() {
// for these tests to pass Metal must be linked directly.
// it is not needed for any of the others nor for Ebitengine to work properly.
//go:cgo_import_dynamic _ _ "Metal.framework/Metal"
//go:cgo_import_dynamic _ _ "/System/Library/Frameworks/Metal.framework/Metal"
// It is also necessary for CoreGraphics to be linked
_, _ = purego.Dlopen("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", purego.RTLD_LAZY|purego.RTLD_GLOBAL)