internal/graphicsdriver/metal/mtl: bug fix: fix a vet error

This commit is contained in:
Hajime Hoshi 2023-03-04 01:37:45 +09:00
parent 36bd3329b3
commit 6ccdc6382c

View File

@ -35,7 +35,7 @@ func init() {
//go:cgo_import_dynamic _ _ "Metal.framework/Metal"
// It is also necessary for CoreGraphics to be linked
purego.Dlopen("/System/Library/Frameworks/CoreGraphics.framework/Versions/Current/CoreGraphics", purego.RTLD_LAZY|purego.RTLD_GLOBAL)
_, _ = purego.Dlopen("/System/Library/Frameworks/CoreGraphics.framework/Versions/Current/CoreGraphics", purego.RTLD_LAZY|purego.RTLD_GLOBAL)
}
func Example_listDevices() {