mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +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).
|
// On old mac devices like iMac 2011, Metal is not supported (#779).
|
||||||
if _, err := mtl.CreateSystemDefaultDevice(); err != nil {
|
if _, err := mtl.CreateSystemDefaultDevice(); err != nil {
|
||||||
isMetalSupported = false
|
isMetalSupported = false
|
||||||
|
return
|
||||||
}
|
}
|
||||||
// On macOS 10.11 El Capitan, there is a rendering issue on Metal (#781).
|
// On macOS 10.11 El Capitan, there is a rendering issue on Metal (#781).
|
||||||
// Use the OpenGL in macOS 10.11 or older.
|
// Use the OpenGL in macOS 10.11 or older.
|
||||||
if C.getMacOSMinorVersion() <= 11 {
|
if C.getMacOSMinorVersion() <= 11 {
|
||||||
isMetalSupported = false
|
isMetalSupported = false
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user