mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
uidriver/mobile: Bug fix: Error must be handled whenever possible
Updates #860
This commit is contained in:
parent
2dc6042858
commit
dbd5e25b89
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user