graphics: Clear the default render target just after initializing

This commit is contained in:
Hajime Hoshi 2016-03-21 23:24:30 +09:00
parent dc933b88f8
commit deabfa5e15

View File

@ -78,6 +78,7 @@ func (c *graphicsContext) setSize(screenWidth, screenHeight, screenScale int) er
}
screen := &Image{framebuffer: screenF, texture: texture}
c.defaultRenderTarget = &Image{framebuffer: f, texture: nil}
c.defaultRenderTarget.Clear()
c.screen = screen
c.screenScale = screenScale
return nil