From f7338eb7159594f3ed1eb964cf42d357dc9cd7cf Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 24 Jun 2019 02:32:40 +0900 Subject: [PATCH] graphics: Early return at the driver selector --- graphics_mac.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphics_mac.go b/graphics_mac.go index 6138b8ec0..eb78c63b7 100644 --- a/graphics_mac.go +++ b/graphics_mac.go @@ -44,11 +44,13 @@ func init() { // On old mac devices like iMac 2011, Metal is not supported (#779). if _, err := mtl.CreateSystemDefaultDevice(); err != nil { isMetalSupported = false + return } // On macOS 10.11 El Capitan, there is a rendering issue on Metal (#781). // Use the OpenGL in macOS 10.11 or older. if C.getMacOSMinorVersion() <= 11 { isMetalSupported = false + return } }