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

This commit is contained in:
Hajime Hoshi 2016-09-04 02:25:10 +09:00
parent d6cf199956
commit e22561c292

View File

@ -163,7 +163,7 @@ func (i *imageImpl) DrawImage(image *Image, options *DrawImageOptions) error {
geom := options.GeoM geom := options.GeoM
colorm := options.ColorM colorm := options.ColorM
mode := opengl.CompositeMode(options.CompositeMode) mode := opengl.CompositeMode(options.CompositeMode)
if image.impl.pixels.IsStale() { if image.impl.pixels.IsStale() || image.impl.volatile {
i.pixels.MakeStale() i.pixels.MakeStale()
} else { } else {
i.pixels.AppendDrawImageHistory(image.impl.image, vertices, &geom, &colorm, mode) i.pixels.AppendDrawImageHistory(image.impl.image, vertices, &geom, &colorm, mode)