mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48: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 = 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()
|
||||||
|
Loading…
Reference in New Issue
Block a user