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 3e4b65d35a
commit 72ff5a8cbc

View File

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