2
0
mirror of synced 2025-02-22 14:28:14 +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 { select {
case <-gl.WorkAvailable: case <-gl.WorkAvailable:
gl.DoWork() gl.DoWork()
case <-publish: case <-theApp.publish:
theApp.publishResult <- PublishResult{} theApp.publishResult <- PublishResult{}
return return
} }

View File

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