diff --git a/internal/graphicsutil/vertices.go b/internal/graphicsutil/vertices.go index d5414d987..ec8ee04a4 100644 --- a/internal/graphicsutil/vertices.go +++ b/internal/graphicsutil/vertices.go @@ -73,11 +73,11 @@ func QuadVertices(width, height int, sx0, sy0, sx1, sy1 int, geom GeoM) []float3 wf := float32(w) hf := float32(h) u0, v0, u1, v1 := float32(sx0)/wf, float32(sy0)/hf, float32(sx1)/wf, float32(sy1)/hf - quadVerticesImpl(vs, wf, hf, u0, v0, u1, v1, x0, y0, x1, y1, geom) + quadVerticesImpl(vs, u0, v0, u1, v1, x0, y0, x1, y1, geom) return vs } -func quadVerticesImpl(vs []float32, wf, hf, u0, v0, u1, v1, x0, y0, x1, y1 float32, geom GeoM) { +func quadVerticesImpl(vs []float32, u0, v0, u1, v1, x0, y0, x1, y1 float32, geom GeoM) { x, y := geom.Apply(x0, y0) // Vertex coordinates vs[0] = x