From c73860caa2c316a8b4be433dddd0508c34f961f0 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 4 Sep 2016 02:16:58 +0900 Subject: [PATCH] restorable: Bug fix: volatile images are not relaiable when restoring --- internal/restorable/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/restorable/image.go b/internal/restorable/image.go index 6c5f532e6..e0620e665 100644 --- a/internal/restorable/image.go +++ b/internal/restorable/image.go @@ -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)