vector: bug fix: wrong base index

Closes #2379
This commit is contained in:
Hajime Hoshi 2022-10-10 18:07:10 +09:00
parent a310b7c5bb
commit a57042ebef

View File

@ -287,7 +287,7 @@ func (p *Path) Arc(x, y, radius, startAngle, endAngle float32, dir Direction) {
func (p *Path) AppendVerticesAndIndicesForFilling(vertices []ebiten.Vertex, indices []uint16) ([]ebiten.Vertex, []uint16) {
// TODO: Add tests.
var base uint16
base := uint16(len(vertices))
for _, seg := range p.segs {
if len(seg) < 3 {
continue