mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +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
7a850a15a9
commit
67d158b451
@ -773,6 +773,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