ui: Refactoring

This commit is contained in:
Hajime Hoshi 2016-02-21 18:01:43 +09:00
parent 60a504543f
commit bae6d62067

View File

@ -75,12 +75,10 @@ var (
func Loop() {
<-workerCreated
for {
select {
case <-worker.WorkAvailable():
<-worker.WorkAvailable()
worker.DoWork()
}
}
}
func (c *Context) init() {
gl, worker = mgl.NewContext()