internal/uidriver/glfw: use shoten sleeping time at waitForFramebufferSizeCallback

Updates #1918
This commit is contained in:
Hajime Hoshi 2022-02-03 00:28:11 +09:00
parent e01a0b8a82
commit a19bbd3b09

View File

@ -807,7 +807,7 @@ func (u *UserInterface) waitForFramebufferSizeCallback(window *glfw.Window, f fu
}
// Use the timeout as FramebufferSize event might not be fired (#1618).
t := time.NewTimer(time.Second)
t := time.NewTimer(100 * time.Millisecond)
defer t.Stop()
event: