internal/uidriver/glfw: Avoid busy loop by sleeping

Updates #1580
This commit is contained in:
Hajime Hoshi 2021-04-24 05:18:44 +09:00
parent 798acc9757
commit 91f8347500

View File

@ -1229,6 +1229,7 @@ func (u *UserInterface) setWindowSize(width, height int, fullscreen bool) {
case <-t.C:
break event
default:
time.Sleep(time.Millisecond)
}
}
u.window.SetFramebufferSizeCallback(nil)