fix GLTriangles.SetLen when decreasing length

This commit is contained in:
faiface 2017-03-09 22:56:46 +01:00
parent fa774a4259
commit 000a18e2cf
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ func (gt *GLTriangles) SetLen(len int) {
}
}
if len < gt.Len() {
gt.data = gt.data[:len]
gt.data = gt.data[:len*gt.vs.Stride()]
}
}