graphicscommand: Bug fix: Fix tests

This commit is contained in:
Hajime Hoshi 2019-09-21 03:36:40 +09:00
parent 6fa7d59468
commit 9e78d8c656

View File

@ -49,15 +49,14 @@ type testVertexPutter struct {
}
func (t *testVertexPutter) PutVertex(vs []float32, dx, dy, sx, sy float32, bx0, by0, bx1, by1 float32, cr, cg, cb, ca float32) {
// The implementation is basically same as restorable.(*Image).PutVertex.
vs[0] = dx
vs[1] = dy
vs[2] = sx / t.w
vs[3] = sy / t.h
vs[4] = bx0 / t.w
vs[5] = by0 / t.h
vs[6] = bx1 / t.w
vs[7] = by1 / t.h
vs[2] = sx
vs[3] = sy
vs[4] = bx0
vs[5] = by0
vs[6] = bx1
vs[7] = by1
vs[8] = cr
vs[9] = cg
vs[10] = cb