graphics: Bug fix: Wrong vertices values on ARM 32bit (#329)

This commit is contained in:
Hajime Hoshi 2017-03-05 12:34:58 +09:00
parent db9c5d00ce
commit cc21284f11

View File

@ -69,6 +69,9 @@ func vertices(parts ImageParts, width, height int, geo *affine.GeoM) []float32 {
vs[n+8] = g4
vs[n+9] = g5
// nop is required to avoid an ARM 32bit issue (#329).
nop()
vs[n+10] = x1
vs[n+11] = y0
vs[n+12] = u1
@ -106,3 +109,7 @@ func vertices(parts ImageParts, width, height int, geo *affine.GeoM) []float32 {
}
return vs
}
//go:noinline
func nop() {
}