mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
internal/uidriver/glfw: Bug fix: Rendering should be updated after restoring from fullscreen
u.toChangeSize affects the result of u.updateSize. When the callback for WindowSetSize is invoked, toChangeSize should be true. In order to simplify the logic, we have to remove toChangeSize later. Closes #1884
This commit is contained in:
parent
1dd13ae06e
commit
22e64c7df0
@ -771,6 +771,10 @@ func (u *UserInterface) registerWindowSetSizeCallback() {
|
||||
}
|
||||
|
||||
if err := u.runOnAnotherThreadFromMainThread(func() error {
|
||||
// toChangeSize affects the result of updateSize (#1884).
|
||||
// TODO: Remove toChangeSize to simplify the logic.
|
||||
u.toChangeSize = true
|
||||
|
||||
// Disable Vsync temporarily. On macOS, getting a next frame can get stuck (#1740).
|
||||
u.Graphics().SetVsyncEnabled(false)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user