From 4cbd64e7ab6d976496c5e36c1ebae7526eceb375 Mon Sep 17 00:00:00 2001 From: sam-anthony Date: Tue, 5 Apr 2022 21:32:40 -0230 Subject: display points on compressor map --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.go') 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 }) -- cgit v1.2.3