This commit is contained in:
Hajime Hoshi 2019-09-28 23:09:20 +09:00
parent f873b66267
commit 5e6bdc25e5

View File

@ -99,8 +99,8 @@ func (q *commandQueue) appendVertices(vertices []float32, width, height float32)
}
copy(q.vertices[q.nvertices:], vertices)
n := len(vertices)/graphics.VertexFloatNum
base := q.nvertices/graphics.VertexFloatNum
n := len(vertices) / graphics.VertexFloatNum
base := q.nvertices / graphics.VertexFloatNum
for i := 0; i < n; i++ {
idx := base + i
q.srcSizes[idx].width = width