diff --git a/window.go b/window.go index 89062ba..fff9c48 100644 --- a/window.go +++ b/window.go @@ -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)