mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
ui: Refactoring
This commit is contained in:
parent
9560824dfc
commit
57a9ecd821
@ -49,8 +49,7 @@ func CurrentUI() *UserInterface {
|
|||||||
func Init() (*opengl.Context, error) {
|
func Init() (*opengl.Context, error) {
|
||||||
runtime.LockOSThread()
|
runtime.LockOSThread()
|
||||||
|
|
||||||
err := glfw.Init()
|
if err := glfw.Init(); err != nil {
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
glfw.WindowHint(glfw.Visible, glfw.False)
|
glfw.WindowHint(glfw.Visible, glfw.False)
|
||||||
|
Loading…
Reference in New Issue
Block a user