internal/mipmap: use a better image size

Unnecessarily big images were used since 4 years go
(f8956941b7). Use a better small image
for mipmaps.
This commit is contained in:
Hajime Hoshi 2024-01-18 16:08:23 +09:00
parent 59487e491c
commit f27402ee44

View File

@ -170,8 +170,8 @@ func (m *Mipmap) level(level int) *buffered.Image {
} }
is := graphics.QuadIndices() is := graphics.QuadIndices()
w2 := sizeForLevel(m.width, level-1) w2 := sizeForLevel(m.width, level)
h2 := sizeForLevel(m.height, level-1) h2 := sizeForLevel(m.height, level)
if w2 == 0 || h2 == 0 { if w2 == 0 || h2 == 0 {
m.setImg(level, nil) m.setImg(level, nil)
return nil return nil