Update main.go
This commit is contained in:
parent
cdc44b6693
commit
c7deef1a8b
2
main.go
2
main.go
@ -218,9 +218,9 @@ func glInit() {
|
|||||||
|
|
||||||
qml.Func1 = func() int {
|
qml.Func1 = func() int {
|
||||||
if !win.ShouldClose() {
|
if !win.ShouldClose() {
|
||||||
|
glfw.PollEvents()
|
||||||
drawSlide()
|
drawSlide()
|
||||||
win.SwapBuffers()
|
win.SwapBuffers()
|
||||||
glfw.PollEvents()
|
|
||||||
return 0
|
return 0
|
||||||
} else {
|
} else {
|
||||||
win.Hide()
|
win.Hide()
|
||||||
|
Loading…
Reference in New Issue
Block a user