From 40d2dd3ba74e45c9e494ad65accde5242eee0ac3 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 26 Aug 2021 02:05:25 +0900 Subject: [PATCH] internal/uidriver/glfw: Update comments Updates #1787 --- internal/uidriver/glfw/ui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/uidriver/glfw/ui.go b/internal/uidriver/glfw/ui.go index 6c18f6a41..87a9fd97d 100644 --- a/internal/uidriver/glfw/ui.go +++ b/internal/uidriver/glfw/ui.go @@ -975,6 +975,7 @@ func (u *UserInterface) update() (float64, float64, bool, error) { // Call updateVsync even though fpsMode is not updated. // The vsync state might be changed in other places (e.g., the SetSizeCallback). + // Also, when toggling to fullscreen, vsync state might be reset unexpectedly (#1787). u.updateVsync() outsideWidth, outsideHeight, outsideSizeChanged := u.updateSize()