ebiten: Bug fix: Clear the offscreen every frame

This commit is contained in:
Hajime Hoshi 2020-10-04 17:16:26 +09:00
parent ad07e31727
commit ec6e4a16ce

View File

@ -216,6 +216,9 @@ func (c *uiContext) draw() {
return
}
if IsScreenClearedEveryFrame() {
c.offscreen.Clear()
}
c.game.Draw(c.offscreen)
// This clear is needed for fullscreen mode or some mobile platforms (#622).