Commit Graph

6 Commits

Author SHA1 Message Date
Hajime Hoshi
26296993f8 graphics: Fix comments again 2019-06-24 17:22:38 +09:00
Hajime Hoshi
f008c6ab80 graphics: Fix comments 2019-06-24 12:54:02 +09:00
Hajime Hoshi
c492920842 graphics: Bug fix: Avoid init-order dependency by sync.Once
graphicsDriver() function can be called from init() functions,
while isMetalSupported is initialized in another init() functions.
There was a hidden dependency on init functions.

This change avoid this by replacing the init function with
sync.Once.

Updates #886
2019-06-24 03:06:33 +09:00
Hajime Hoshi
f7338eb715 graphics: Early return at the driver selector 2019-06-24 02:32:40 +09:00
Hajime Hoshi
7445144194 Move graphicsdriver.GrapahicsDriver to driver.Graphics 2019-03-30 22:38:02 +09:00
Hajime Hoshi
747d1be54e driver: Move getting actual drivers to ebiten package 2019-03-30 22:19:21 +09:00