graphics: Remove redundant disposing images

This commit is contained in:
Hajime Hoshi 2018-07-30 00:25:51 +09:00
parent c720c8e1cb
commit 9e9a05ee54

View File

@ -92,7 +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()
// Mipmap images should be disposed by fill.
setDrawingSkipped(i < updateCount-1)
if err := hooks.RunBeforeUpdateHooks(); err != nil {