diff --git a/graphicscontext.go b/graphicscontext.go index 3a9e9d88b..f5b414ec9 100644 --- a/graphicscontext.go +++ b/graphicscontext.go @@ -112,6 +112,11 @@ func (c *graphicsContext) Update(afterFrameUpdate func()) error { afterFrameUpdate() } + // Before clearing the screen, the offscreen's pixels must be solved. + // After clearing the screen, resolving doesn't work. This is very hacky + // but we could not find other way so far (#792). + c.offscreen.resolvePixelsToSet(true) + // This clear is needed for fullscreen mode or some mobile platforms (#622). c.screen.Clear()