From 823834c0135319267ff0203d8fa0edac338b84cd Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 20 Jul 2016 02:09:09 +0900 Subject: [PATCH] graphics: Bug fix: dispose offscreen2 --- graphicscontext.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/graphicscontext.go b/graphicscontext.go index 45102698d..0c46f16b6 100644 --- a/graphicscontext.go +++ b/graphicscontext.go @@ -43,6 +43,9 @@ func (c *graphicsContext) SetSize(screenWidth, screenHeight int, screenScale flo if c.offscreen != nil { c.offscreen.Dispose() } + if c.offscreen2 != nil { + c.offscreen2.Dispose() + } offscreen, err := newVolatileImage(screenWidth, screenHeight, FilterNearest) if err != nil { return err