graphics: Bug fix: dispose offscreen2

This commit is contained in:
Hajime Hoshi 2016-07-20 02:09:09 +09:00
parent b2ed6ef027
commit 823834c013

View File

@ -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