mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/graphicsdriver/metal/mtl: bug fix: fail to resolve Metal.framework path with Xcode 15
Updates #2732 Closes #2784
This commit is contained in:
parent
75f3fbfe7b
commit
b590ee337e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user