mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +01:00
graphics: Always clear the screen framebuffer
This fixes the issue on Xperia Z3, but not on Xperia XY
This commit is contained in:
parent
9046c0fb00
commit
e829e650f2
@ -112,10 +112,8 @@ func (c *graphicsContext) Update(afterFrameUpdate func()) error {
|
|||||||
afterFrameUpdate()
|
afterFrameUpdate()
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: This clear is needed only when the screen size is changed.
|
// This clear is needed for fullscreen mode or some mobile platforms (#622).
|
||||||
if c.offsetX > 0 || c.offsetY > 0 {
|
c.screen.Clear()
|
||||||
c.screen.Clear()
|
|
||||||
}
|
|
||||||
|
|
||||||
op := &DrawImageOptions{}
|
op := &DrawImageOptions{}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user