From 865a45e0524ef7f6968b66b7cb2011ed853af675 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 4 Sep 2016 02:11:02 +0900 Subject: [PATCH] restorable: Reset states after restoring --- internal/restorable/image.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/restorable/image.go b/internal/restorable/image.go index c8d4559a8..6c5f532e6 100644 --- a/internal/restorable/image.go +++ b/internal/restorable/image.go @@ -236,7 +236,10 @@ func (p *Image) RestoreImage(context *opengl.Context) error { if err != nil { return err } - // TODO: Reset other values? + p.basePixels = nil + p.baseColor = color.RGBA{} + p.drawImageHistory = nil + p.stale = false return nil } if p.stale {