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) { 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)