internal/mipmap: Bug fix: nil should be meaningful for a mipmap map

This commit is contained in:
Hajime Hoshi 2021-09-21 00:46:11 +09:00
parent 81fd7ab8f6
commit f79acf9569

View File

@ -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