mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
graphics: Early return at the driver selector
This commit is contained in:
parent
de4b439228
commit
f7338eb715
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user