graphics: Always clear the screen framebuffer

This fixes the issue on Xperia Z3, but not on Xperia XY
This commit is contained in:
Hajime Hoshi 2019-01-17 11:37:15 +09:00
parent 9046c0fb00
commit e829e650f2

View File

@ -112,10 +112,8 @@ func (c *graphicsContext) Update(afterFrameUpdate func()) error {
afterFrameUpdate()
}
// TODO: This clear is needed only when the screen size is changed.
if c.offsetX > 0 || c.offsetY > 0 {
c.screen.Clear()
}
// This clear is needed for fullscreen mode or some mobile platforms (#622).
c.screen.Clear()
op := &DrawImageOptions{}