Skip to content

Commit

Permalink
Update loop_desktop.go - add waitEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth authored Jan 17, 2025
1 parent 655cf74 commit 62279a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/driver/glfw/loop_desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ func (d *gLDriver) initGLFW() {
}

func (d *gLDriver) pollEvents() {
glfw.PollEvents() // This call blocks while window is being resized, which prevents freeDirtyTextures from being called
}

func (d *gLDriver) waitEvents() {

Check failure on line 27 in internal/driver/glfw/loop_desktop.go

View workflow job for this annotation

GitHub Actions / static_analysis

func (*gLDriver).waitEvents is unused (U1000)
glfw.WaitEvents() // This call blocks while window is being resized, which prevents freeDirtyTextures from being called
}

Expand Down

0 comments on commit 62279a0

Please sign in to comment.