mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
ui: Refactoring
This commit is contained in:
parent
60a504543f
commit
bae6d62067
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user