From 85b18b567a43525d0ac46080d993bca907f0ce43 Mon Sep 17 00:00:00 2001 From: Ben Cragg Date: Mon, 15 Apr 2019 11:20:40 +0100 Subject: [PATCH] prevented concurrent race condition --- pixelgl/gltriangles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixelgl/gltriangles.go b/pixelgl/gltriangles.go index 52ed0c9..f258102 100644 --- a/pixelgl/gltriangles.go +++ b/pixelgl/gltriangles.go @@ -77,7 +77,7 @@ func (gt *GLTriangles) SetLen(length int) { default: return } - mainthread.CallNonBlock(func() { + mainthread.Call(func() { gt.vs.Begin() gt.vs.SetLen(length) gt.vs.End()