mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-12 22:17:26 +01:00
ebiten: Bug fix: Clear the offscreen every frame
This commit is contained in:
parent
ad07e31727
commit
ec6e4a16ce
@ -216,6 +216,9 @@ func (c *uiContext) draw() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if IsScreenClearedEveryFrame() {
|
||||||
|
c.offscreen.Clear()
|
||||||
|
}
|
||||||
c.game.Draw(c.offscreen)
|
c.game.Draw(c.offscreen)
|
||||||
|
|
||||||
// This clear is needed for fullscreen mode or some mobile platforms (#622).
|
// This clear is needed for fullscreen mode or some mobile platforms (#622).
|
||||||
|
Loading…
Reference in New Issue
Block a user