mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
Bug fix: Screen should be clear with opaque black
This commit is contained in:
parent
012b014fe4
commit
7727ed13ae
@ -93,7 +93,7 @@ func (c *graphicsContext) preUpdate() {
|
||||
c.currents = c.currents[0:1]
|
||||
c.currents[0] = c.defaultR
|
||||
c.PushRenderTarget(c.screen)
|
||||
c.Clear()
|
||||
c.Fill(color.RGBA{0, 0, 0, 0xff})
|
||||
}
|
||||
|
||||
func (c *graphicsContext) postUpdate() {
|
||||
@ -101,8 +101,7 @@ func (c *graphicsContext) postUpdate() {
|
||||
c.Clear()
|
||||
|
||||
scale := float64(c.screenScale)
|
||||
geo := GeometryMatrixI()
|
||||
geo.Concat(ScaleGeometry(scale, scale))
|
||||
geo := ScaleGeometry(scale, scale)
|
||||
DrawWholeTexture(c, c.screen.texture, geo, ColorMatrixI())
|
||||
|
||||
gl.Flush()
|
||||
|
Loading…
Reference in New Issue
Block a user