mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/atlas: bug fix: do not pass nil to WritePixels
This commit is contained in:
parent
81e1104613
commit
2a465c2d0b
@ -475,7 +475,7 @@ func (i *Image) writePixels(pix []byte, region image.Rectangle) {
|
||||
region = region.Add(r.Min)
|
||||
|
||||
if pix == nil {
|
||||
i.backend.restorable.WritePixels(nil, region)
|
||||
i.backend.restorable.ClearPixels(region)
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user