mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +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)
|
region = region.Add(r.Min)
|
||||||
|
|
||||||
if pix == nil {
|
if pix == nil {
|
||||||
i.backend.restorable.WritePixels(nil, region)
|
i.backend.restorable.ClearPixels(region)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user