mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
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:
parent
59487e491c
commit
f27402ee44
@ -170,8 +170,8 @@ func (m *Mipmap) level(level int) *buffered.Image {
|
||||
}
|
||||
is := graphics.QuadIndices()
|
||||
|
||||
w2 := sizeForLevel(m.width, level-1)
|
||||
h2 := sizeForLevel(m.height, level-1)
|
||||
w2 := sizeForLevel(m.width, level)
|
||||
h2 := sizeForLevel(m.height, level)
|
||||
if w2 == 0 || h2 == 0 {
|
||||
m.setImg(level, nil)
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user