From 754ad3cfda342ad8c5d07a5ef9334f8a62b6aefa Mon Sep 17 00:00:00 2001 From: Hyang-Ah Hana Kim Date: Fri, 15 May 2015 08:04:59 -0400 Subject: [PATCH] app: fix broken build on linux. Fixes golang/go#10869 Change-Id: I5bb24bed198379c9b9c6533ac28e80bd0b17a2a8 Reviewed-on: https://go-review.googlesource.com/10117 Reviewed-by: Burcu Dogan --- app/x11.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/x11.go b/app/x11.go index 625099d..374ac66 100644 --- a/app/x11.go +++ b/app/x11.go @@ -29,8 +29,6 @@ import ( "golang.org/x/mobile/geom" ) -var callbacks []Callbacks - func run(cbs []Callbacks) { runtime.LockOSThread() callbacks = cbs @@ -99,7 +97,7 @@ func onDraw() { //export onStart func onStart() { - stateInit(callbacks) + stateStart(callbacks) } //export onStop