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 a0987db0c6
commit 53e4810b6d

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)