prevented concurrent race condition

This commit is contained in:
Ben Cragg 2019-04-15 11:20:40 +01:00
parent e8ba24ea40
commit 85b18b567a
1 changed files with 1 additions and 1 deletions

View File

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