fix #100
This commit is contained in:
parent
baabf3adac
commit
3cf59b1044
|
@ -116,6 +116,7 @@ func NewWindow(cfg WindowConfig) (*Window, error) {
|
||||||
|
|
||||||
// enter the OpenGL context
|
// enter the OpenGL context
|
||||||
w.begin()
|
w.begin()
|
||||||
|
glhf.Init()
|
||||||
w.end()
|
w.end()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
@ -362,7 +363,6 @@ func (w *Window) CursorVisible() bool {
|
||||||
func (w *Window) begin() {
|
func (w *Window) begin() {
|
||||||
if currWin != w {
|
if currWin != w {
|
||||||
w.window.MakeContextCurrent()
|
w.window.MakeContextCurrent()
|
||||||
glhf.Init()
|
|
||||||
currWin = w
|
currWin = w
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue