uidriver/mobile: Bug fix: Error must be handled whenever possible

Updates #860
This commit is contained in:
Hajime Hoshi 2019-06-01 03:11:09 +09:00
parent 2dc6042858
commit dbd5e25b89

View File

@ -67,9 +67,11 @@ func (u *UserInterface) Render(chError <-chan error) error {
select {
case err := <-chError:
return err
case renderCh <- struct{}{}:
return opengl.Get().DoWork(renderEndCh)
default:
}
renderCh <- struct{}{}
return opengl.Get().DoWork(renderEndCh)
}
type UserInterface struct {