mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
graphics: Bug fix: Wrong vertices values on ARM 32bit (#329)
This commit is contained in:
parent
db9c5d00ce
commit
cc21284f11
@ -69,6 +69,9 @@ func vertices(parts ImageParts, width, height int, geo *affine.GeoM) []float32 {
|
|||||||
vs[n+8] = g4
|
vs[n+8] = g4
|
||||||
vs[n+9] = g5
|
vs[n+9] = g5
|
||||||
|
|
||||||
|
// nop is required to avoid an ARM 32bit issue (#329).
|
||||||
|
nop()
|
||||||
|
|
||||||
vs[n+10] = x1
|
vs[n+10] = x1
|
||||||
vs[n+11] = y0
|
vs[n+11] = y0
|
||||||
vs[n+12] = u1
|
vs[n+12] = u1
|
||||||
@ -106,3 +109,7 @@ func vertices(parts ImageParts, width, height int, geo *affine.GeoM) []float32 {
|
|||||||
}
|
}
|
||||||
return vs
|
return vs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//go:noinline
|
||||||
|
func nop() {
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user