mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58: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 {
|
||||
if img.stale {
|
||||
if img.stale || img.volatile {
|
||||
p.makeStale()
|
||||
} else {
|
||||
p.appendDrawImageHistory(img.image, vertices, geom, colorm, mode)
|
||||
|
Loading…
Reference in New Issue
Block a user