2
0
mirror of synced 2025-02-20 13:38:20 +00:00

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:
Nigel Tao 2015-09-23 19:46:12 +10:00
parent 9e848912c3
commit 5291eb5e09
2 changed files with 3 additions and 3 deletions

View File

@ -185,7 +185,7 @@ func drawgl(ctx uintptr) {
select {
case <-gl.WorkAvailable:
gl.DoWork()
case <-publish:
case <-theApp.publish:
theApp.publishResult <- PublishResult{}
return
}

View File

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