mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
restorable: Bug fix: volatile images are not relaiable when restoring
This commit is contained in:
parent
865a45e052
commit
c73860caa2
@ -144,7 +144,7 @@ func (p *Image) ReplacePixels(pixels []uint8) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *Image) DrawImage(img *Image, vertices []int16, geom graphics.Matrix, colorm graphics.Matrix, mode opengl.CompositeMode) error {
|
func (p *Image) DrawImage(img *Image, vertices []int16, geom graphics.Matrix, colorm graphics.Matrix, mode opengl.CompositeMode) error {
|
||||||
if img.stale {
|
if img.stale || img.volatile {
|
||||||
p.makeStale()
|
p.makeStale()
|
||||||
} else {
|
} else {
|
||||||
p.appendDrawImageHistory(img.image, vertices, geom, colorm, mode)
|
p.appendDrawImageHistory(img.image, vertices, geom, colorm, mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user