From f79acf956979584ba938a5c1e836c618b24d0a0f Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 21 Sep 2021 00:46:11 +0900 Subject: [PATCH] internal/mipmap: Bug fix: nil should be meaningful for a mipmap map --- internal/mipmap/mipmap.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/mipmap/mipmap.go b/internal/mipmap/mipmap.go index 3ba81469e..9d9e1df7b 100644 --- a/internal/mipmap/mipmap.go +++ b/internal/mipmap/mipmap.go @@ -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