mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/uidriver/glfw: Bug fix: Abort the game immediately on error
Updates #1688
This commit is contained in:
parent
9c5b7b56b2
commit
6c4edf8605
@ -46,12 +46,14 @@ func (u *UserInterface) Run(uicontext driver.UIContext) error {
|
||||
_ = u.t.Call(func() error {
|
||||
if err := u.init(); err != nil {
|
||||
ch <- err
|
||||
return nil
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
if err := u.loop(); err != nil {
|
||||
ch <- err
|
||||
return
|
||||
}
|
||||
}()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user