This commit is contained in:
faiface 2018-02-26 18:38:12 +01:00
parent baabf3adac
commit 3cf59b1044
1 changed files with 1 additions and 1 deletions

View File

@ -116,6 +116,7 @@ func NewWindow(cfg WindowConfig) (*Window, error) {
// enter the OpenGL context
w.begin()
glhf.Init()
w.end()
return nil
@ -362,7 +363,6 @@ func (w *Window) CursorVisible() bool {
func (w *Window) begin() {
if currWin != w {
w.window.MakeContextCurrent()
glhf.Init()
currWin = w
}
}