ebiten/internal/uidriver/glfw
Enrico 3ef1d04935
internal/uidriver/glfw: Bug fix: do not execute loop function if init failed (#1689)
In `internal/uidriver/glfw/run_notsinglethread.go`, if the `UserInterface.init()` function returns an error, the `loop` is
executed regardless and the error is discarded. This behavior will hide the error returned by `init()` and might trigger
some crashes (see #1688).

A partial fix was implemented in 6c4edf8 , however that commit alone is not enough: the code now is correctly returning
the error via the `ch` channel, but it still executes the `loop()` function. This merge request skips `loop()` call if `init()`
had an error.

Updates #1688
2021-06-29 23:51:25 +09:00
..
graphics_darwin.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
graphics_opengl.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
hideconsole_notwindows.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
hideconsole_windows.go Clean up the 'js' build tags 2020-10-07 01:33:10 +09:00
input.go internal/glfw: Bug fix: NewCallbackCDecl objects were leaked 2021-06-13 22:23:01 +09:00
keys.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
run_notsinglethread.go internal/uidriver/glfw: Bug fix: do not execute loop function if init failed (#1689) 2021-06-29 23:51:25 +09:00
run_singlethread.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
ui_darwin.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
ui_unix.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
ui_windows.go internal/uidriver/glfw: Native macOS implementation for setting cursor shape (#1624) 2021-05-02 14:50:50 +09:00
ui.go ebiten: Add IsWindowBeingClosed / SetWindowClosingHandled / IsWindowClosingHandled 2021-06-14 02:29:11 +09:00
window.go ebiten: Add IsWindowBeingClosed / SetWindowClosingHandled / IsWindowClosingHandled 2021-06-14 02:29:11 +09:00