ui: Refactoring

This commit is contained in:
Hajime Hoshi 2016-05-07 22:27:10 +09:00
parent 9560824dfc
commit 57a9ecd821

View File

@ -49,8 +49,7 @@ func CurrentUI() *UserInterface {
func Init() (*opengl.Context, error) {
runtime.LockOSThread()
err := glfw.Init()
if err != nil {
if err := glfw.Init(); err != nil {
return nil, err
}
glfw.WindowHint(glfw.Visible, glfw.False)