internal/atlas: bug fix: do not pass nil to WritePixels

This commit is contained in:
Hajime Hoshi 2024-01-13 18:33:02 +09:00
parent 81e1104613
commit 2a465c2d0b

View File

@ -475,7 +475,7 @@ func (i *Image) writePixels(pix []byte, region image.Rectangle) {
region = region.Add(r.Min) region = region.Add(r.Min)
if pix == nil { if pix == nil {
i.backend.restorable.WritePixels(nil, region) i.backend.restorable.ClearPixels(region)
return return
} }