Skip to content

Commit

Permalink
internal/uidriver/glfw: Avoid busy loop by sleeping
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Apr 23, 2021
1 parent 3e4b65d commit 72ff5a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/uidriver/glfw/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,7 @@ func (u *UserInterface) setWindowSize(width, height int, fullscreen bool) {
case <-t.C:
break event
default:
time.Sleep(time.Millisecond)
}
}
u.window.SetFramebufferSizeCallback(nil)
Expand Down

0 comments on commit 72ff5a8

Please sign in to comment.