mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 02:42:02 +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 {
|
select {
|
||||||
case err := <-chError:
|
case err := <-chError:
|
||||||
return err
|
return err
|
||||||
case renderCh <- struct{}{}:
|
default:
|
||||||
return opengl.Get().DoWork(renderEndCh)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
renderCh <- struct{}{}
|
||||||
|
return opengl.Get().DoWork(renderEndCh)
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserInterface struct {
|
type UserInterface struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user