Bug fix: Screen should be clear with opaque black

This commit is contained in:
Hajime Hoshi 2014-12-20 15:55:13 +09:00
parent 012b014fe4
commit 7727ed13ae

View File

@ -93,7 +93,7 @@ func (c *graphicsContext) preUpdate() {
c.currents = c.currents[0:1] c.currents = c.currents[0:1]
c.currents[0] = c.defaultR c.currents[0] = c.defaultR
c.PushRenderTarget(c.screen) c.PushRenderTarget(c.screen)
c.Clear() c.Fill(color.RGBA{0, 0, 0, 0xff})
} }
func (c *graphicsContext) postUpdate() { func (c *graphicsContext) postUpdate() {
@ -101,8 +101,7 @@ func (c *graphicsContext) postUpdate() {
c.Clear() c.Clear()
scale := float64(c.screenScale) scale := float64(c.screenScale)
geo := GeometryMatrixI() geo := ScaleGeometry(scale, scale)
geo.Concat(ScaleGeometry(scale, scale))
DrawWholeTexture(c, c.screen.texture, geo, ColorMatrixI()) DrawWholeTexture(c, c.screen.texture, geo, ColorMatrixI())
gl.Flush() gl.Flush()