mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +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() {
|
||||
for {
|
||||
select {
|
||||
case f := <-c.funcs:
|
||||
f()
|
||||
}
|
||||
for f := range c.funcs {
|
||||
f()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user