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 c7d1d28582
commit 915ed48f7a

View File

@ -32,7 +32,7 @@ import (
func init() { func init() {
// for these tests to pass Metal must be linked directly. // 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. // 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 // It is also necessary for CoreGraphics to be linked
_, _ = purego.Dlopen("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", purego.RTLD_LAZY|purego.RTLD_GLOBAL) _, _ = purego.Dlopen("/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", purego.RTLD_LAZY|purego.RTLD_GLOBAL)