Skip to content

Commit

Permalink
Add comments to GLFW workarounds still needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Nov 23, 2023
1 parent 0ab2a60 commit 529a3d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/driver/glfw/loop_desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func (d *gLDriver) initGLFW() {

func (d *gLDriver) tryPollEvents() {
defer func() {
// See https://github.com/glfw/glfw/issues/1785 and https://github.com/fyne-io/fyne/issues/1024.
if r := recover(); r != nil {
fyne.LogError(fmt.Sprint("GLFW poll event error: ", r), nil)
}
Expand Down
1 change: 1 addition & 0 deletions internal/driver/glfw/loop_goxjs.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func (d *gLDriver) initGLFW() {

func (d *gLDriver) tryPollEvents() {
defer func() {
// See https://github.com/glfw/glfw/issues/1785 and https://github.com/fyne-io/fyne/issues/1024.
if r := recover(); r != nil {
fyne.LogError(fmt.Sprint("GLFW poll event error: ", r), nil)
}
Expand Down

0 comments on commit 529a3d6

Please sign in to comment.