graphics: Bug fix: mipmap level calculation

This commit is contained in:
Hajime Hoshi 2018-07-31 01:02:09 +09:00
parent d7d02e6d6a
commit b8ab1363d2

View File

@ -254,7 +254,7 @@ func (i *Image) DrawImage(img *Image, options *DrawImageOptions) error {
level := uint(0)
if filter == graphics.FilterLinear {
det := math.Abs(float64(geom.det()))
for det < 0.5 {
for det < 0.25 {
level++
det *= 4
}