diff --git a/main.go b/main.go index 86ca3af..f5ffbf4 100644 --- a/main.go +++ b/main.go @@ -218,9 +218,9 @@ func glInit() { qml.Func1 = func() int { if !win.ShouldClose() { + glfw.PollEvents() drawSlide() win.SwapBuffers() - glfw.PollEvents() return 0 } else { win.Hide()