move glfw init to pixel.Run

This commit is contained in:
faiface 2017-01-26 03:33:21 +01:00
parent 95444e8540
commit 19faeffcf1
1 changed files with 1 additions and 4 deletions

View File

@ -89,10 +89,7 @@ func NewWindow(config WindowConfig) (*Window, error) {
w := &Window{config: config}
err := mainthread.CallErr(func() error {
err := glfw.Init()
if err != nil {
return err
}
var err error
glfw.WindowHint(glfw.ContextVersionMajor, 3)
glfw.WindowHint(glfw.ContextVersionMinor, 3)