From c720c8e1cbfc1bae578dc66831f93a317bee7e8f Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 30 Jul 2018 00:03:34 +0900 Subject: [PATCH] graphics: Dispose mipmap images for the offscreen every frame --- graphicscontext.go | 1 + 1 file changed, 1 insertion(+) diff --git a/graphicscontext.go b/graphicscontext.go index 470948f75..5698935db 100644 --- a/graphicscontext.go +++ b/graphicscontext.go @@ -92,6 +92,7 @@ func (c *graphicsContext) Update(afterFrameUpdate func()) error { } for i := 0; i < updateCount; i++ { c.offscreen.fill(0, 0, 0, 0) + c.offscreen.disposeMipmaps() setDrawingSkipped(i < updateCount-1) if err := hooks.RunBeforeUpdateHooks(); err != nil {