From 6ccdc6382c0da3f1d52f90cfb5be5685108ba5b6 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 4 Mar 2023 01:37:45 +0900 Subject: [PATCH] internal/graphicsdriver/metal/mtl: bug fix: fix a vet error --- internal/graphicsdriver/metal/mtl/example_darwin_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/graphicsdriver/metal/mtl/example_darwin_test.go b/internal/graphicsdriver/metal/mtl/example_darwin_test.go index 581855cf7..d3fc895be 100644 --- a/internal/graphicsdriver/metal/mtl/example_darwin_test.go +++ b/internal/graphicsdriver/metal/mtl/example_darwin_test.go @@ -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() {