move glfw init to pixel.Run
This commit is contained in:
parent
95444e8540
commit
19faeffcf1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue