app: fix broken build.
Change-Id: I9c41f81bc287679cce5372f3aaf0b14a406eebd2 Reviewed-on: https://go-review.googlesource.com/14864 Reviewed-by: Nigel Tao <nigeltao@golang.org>
This commit is contained in:
parent
9e848912c3
commit
5291eb5e09
@ -185,7 +185,7 @@ func drawgl(ctx uintptr) {
|
|||||||
select {
|
select {
|
||||||
case <-gl.WorkAvailable:
|
case <-gl.WorkAvailable:
|
||||||
gl.DoWork()
|
gl.DoWork()
|
||||||
case <-publish:
|
case <-theApp.publish:
|
||||||
theApp.publishResult <- PublishResult{}
|
theApp.publishResult <- PublishResult{}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -67,12 +67,12 @@ func main(f func(App)) {
|
|||||||
return
|
return
|
||||||
case <-gl.WorkAvailable:
|
case <-gl.WorkAvailable:
|
||||||
gl.DoWork()
|
gl.DoWork()
|
||||||
case <-publish:
|
case <-theApp.publish:
|
||||||
C.swapBuffers()
|
C.swapBuffers()
|
||||||
tc = ticker.C
|
tc = ticker.C
|
||||||
case <-tc:
|
case <-tc:
|
||||||
tc = nil
|
tc = nil
|
||||||
publishResult <- PublishResult{}
|
theApp.publishResult <- PublishResult{}
|
||||||
}
|
}
|
||||||
C.processEvents()
|
C.processEvents()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user