From e829e650f2903315c3e0796811c5b5cdaba9edb8 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 17 Jan 2019 11:37:15 +0900 Subject: [PATCH] graphics: Always clear the screen framebuffer This fixes the issue on Xperia Z3, but not on Xperia XY --- graphicscontext.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/graphicscontext.go b/graphicscontext.go index db3368d8c..3a9e9d88b 100644 --- a/graphicscontext.go +++ b/graphicscontext.go @@ -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{}