From e22561c292f66f45faf03d6e11b970bedbe48a9a Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 4 Sep 2016 02:25:10 +0900 Subject: [PATCH] restorable: Bug fix: volatile images are not relaiable when restoring --- imageimpl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imageimpl.go b/imageimpl.go index c1894819a..de4a6d4f4 100644 --- a/imageimpl.go +++ b/imageimpl.go @@ -163,7 +163,7 @@ func (i *imageImpl) DrawImage(image *Image, options *DrawImageOptions) error { geom := options.GeoM colorm := options.ColorM mode := opengl.CompositeMode(options.CompositeMode) - if image.impl.pixels.IsStale() { + if image.impl.pixels.IsStale() || image.impl.volatile { i.pixels.MakeStale() } else { i.pixels.AppendDrawImageHistory(image.impl.image, vertices, &geom, &colorm, mode)