fix GLTriangles.SetLen when decreasing length
This commit is contained in:
parent
fa774a4259
commit
000a18e2cf
|
@ -71,7 +71,7 @@ func (gt *GLTriangles) SetLen(len int) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len < gt.Len() {
|
if len < gt.Len() {
|
||||||
gt.data = gt.data[:len]
|
gt.data = gt.data[:len*gt.vs.Stride()]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue