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 {
|
||||
case <-gl.WorkAvailable:
|
||||
gl.DoWork()
|
||||
case <-publish:
|
||||
case <-theApp.publish:
|
||||
theApp.publishResult <- PublishResult{}
|
||||
return
|
||||
}
|
||||
|
@ -67,12 +67,12 @@ func main(f func(App)) {
|
||||
return
|
||||
case <-gl.WorkAvailable:
|
||||
gl.DoWork()
|
||||
case <-publish:
|
||||
case <-theApp.publish:
|
||||
C.swapBuffers()
|
||||
tc = ticker.C
|
||||
case <-tc:
|
||||
tc = nil
|
||||
publishResult <- PublishResult{}
|
||||
theApp.publishResult <- PublishResult{}
|
||||
}
|
||||
C.processEvents()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user