mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/mipmap: Bug fix: nil should be meaningful for a mipmap map
This commit is contained in:
parent
81fd7ab8f6
commit
f79acf9569
@ -167,9 +167,6 @@ func (m *Mipmap) DrawTriangles(srcs [graphics.ShaderImageNum]*Mipmap, vertices [
|
||||
|
||||
func (m *Mipmap) setImg(level int, img *buffered.Image) {
|
||||
if m.imgs == nil {
|
||||
if img == nil {
|
||||
return
|
||||
}
|
||||
m.imgs = map[int]*buffered.Image{}
|
||||
}
|
||||
m.imgs[level] = img
|
||||
|
Loading…
Reference in New Issue
Block a user