internal/uidriver/glfw: Bug fix: Abort the game immediately on error

Updates #1688
This commit is contained in:
Hajime Hoshi 2021-06-29 02:23:14 +09:00
parent 9c5b7b56b2
commit 6c4edf8605

View File

@ -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
}
}()