This commit is contained in:
Hajime Hoshi 2018-02-03 02:14:26 +09:00
parent beaa060ce3
commit 95b7e8078b

View File

@ -90,7 +90,7 @@ func vertices(sx0, sy0, sx1, sy1 int, width, height int, geo *affine.GeoM) []flo
// Adjust texels to be slightly inside the source rect. Without this
// adjustment, texels can be exactly as same values as the edges'
// positions and it could happen that nothing is rendered. (#491)
const minHighpValue = 1.0/32768.0
const minHighpValue = 1.0 / 32768.0
u0 += minHighpValue
v0 += minHighpValue
u1 -= minHighpValue