prevented concurrent race condition
This commit is contained in:
parent
e8ba24ea40
commit
85b18b567a
|
@ -77,7 +77,7 @@ func (gt *GLTriangles) SetLen(length int) {
|
||||||
default:
|
default:
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
mainthread.CallNonBlock(func() {
|
mainthread.Call(func() {
|
||||||
gt.vs.Begin()
|
gt.vs.Begin()
|
||||||
gt.vs.SetLen(length)
|
gt.vs.SetLen(length)
|
||||||
gt.vs.End()
|
gt.vs.End()
|
||||||
|
|
Loading…
Reference in New Issue