aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index 82847bd..49ff70f 100644
--- a/main.go
+++ b/main.go
@@ -133,7 +133,9 @@ func init() {
func main() {
wnd := g.NewMasterWindow("volute", 400, 200, 0)
- g.EnqueueNewTextureFromRgba(compressorImage, func(tex *g.Texture) {
+ go updateCompImg()
+ m := <-updatedCompImg
+ g.EnqueueNewTextureFromRgba(m, func(tex *g.Texture) {
compressorTexture = tex
})