internal/ui: enable vsync even when resizing the window

Now I couldn't see the issue. Probably the implementation of
internal/graphicsdriver/metal has changed since the last fix, but
I am not sure.

Updates #1740
Closes #1954
This commit is contained in:
Hajime Hoshi 2022-02-09 23:59:36 +09:00
parent edca32e520
commit 5899470511

View File

@ -747,9 +747,6 @@ func (u *UserInterface) registerWindowSetSizeCallback() {
}
if err := u.runOnAnotherThreadFromMainThread(func() error {
// Disable Vsync temporarily. On macOS, getting a next frame can get stuck (#1740).
Graphics().SetVsyncEnabled(false)
var outsideWidth, outsideHeight float64
u.t.Call(func() {