restorable: Bug fix: volatile images are not relaiable when restoring

This commit is contained in:
Hajime Hoshi 2016-09-04 02:16:58 +09:00
parent 865a45e052
commit c73860caa2

View File

@ -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)