Skip to content

Commit

Permalink
uidriver/glfw: Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Oct 17, 2020
1 parent 33fd7c9 commit 974ec52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/uidriver/glfw/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,7 @@ func (u *UserInterface) updateSize() (float64, float64, bool) {

// update must be called from the main thread.
func (u *UserInterface) update() (float64, float64, bool, error) {
shouldClose := u.window.ShouldClose()
if shouldClose {
if u.window.ShouldClose() {
return 0, 0, false, driver.RegularTermination
}

Expand Down

0 comments on commit 974ec52

Please sign in to comment.