opengl: Refactoring

This commit is contained in:
Hajime Hoshi 2016-05-07 19:07:56 +09:00
parent a9249d6c65
commit e99736d5a5

View File

@ -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()
}
} }
} }