From 8ef0f1ac6a215e56b6034929780cd21e670389d3 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 28 Feb 2018 15:56:51 +0900 Subject: [PATCH] restorable: Avoid unneeded discarding images --- 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 a9a1f6b95..9c67b2574 100644 --- a/internal/restorable/image.go +++ b/internal/restorable/image.go @@ -172,11 +172,11 @@ func (i *Image) ReplacePixels(pixels []byte) { // DrawImage draws a given image img to the image. func (i *Image) DrawImage(img *Image, sx0, sy0, sx1, sy1 int, geom *affine.GeoM, colorm *affine.ColorM, mode opengl.CompositeMode, filter graphics.Filter) { - theImages.makeStaleIfDependingOn(i) vs := img.vertices(sx0, sy0, sx1, sy1, geom) if vs == nil { return } + theImages.makeStaleIfDependingOn(i) if img.stale || img.volatile || !IsRestoringEnabled() { i.makeStale() } else {