mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
internal/restorable: bug fix: needed to copy the stale region when extending an image
Updates #2274
This commit is contained in:
parent
b2f874a244
commit
fd5d142453
@ -218,6 +218,7 @@ func (i *Image) Extend(width, height int) *Image {
|
|||||||
newImg.clearDrawTrianglesHistory()
|
newImg.clearDrawTrianglesHistory()
|
||||||
newImg.basePixels = i.basePixels
|
newImg.basePixels = i.basePixels
|
||||||
newImg.stale = i.stale
|
newImg.stale = i.stale
|
||||||
|
newImg.staleRegion = i.staleRegion
|
||||||
|
|
||||||
i.Dispose()
|
i.Dispose()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user