mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 19:22:49 +01:00
opengl: Refactoring
This commit is contained in:
parent
a9249d6c65
commit
e99736d5a5
@ -78,11 +78,8 @@ func NewContext() (*Context, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Context) Loop() {
|
func (c *Context) Loop() {
|
||||||
for {
|
for f := range c.funcs {
|
||||||
select {
|
f()
|
||||||
case f := <-c.funcs:
|
|
||||||
f()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user