Revert "graphics: Bug fix: a too old frame was rendered at least on Android"

Reason: #525

This reverts commit deab21fad1.
This commit is contained in:
Hajime Hoshi 2018-03-01 22:42:19 +09:00
parent deab21fad1
commit 1c0f5e09d5

View File

@ -97,7 +97,7 @@ func (c *graphicsContext) Update(afterFrameUpdate func()) error {
}
afterFrameUpdate()
}
if 0 < updateCount {
// Call ClearFramebuffer instead of c.screen.Clear()
// to clear the whole region including fullscreen's padding.
c.screen.restorable.ClearFramebuffer()
@ -117,6 +117,7 @@ func (c *graphicsContext) Update(afterFrameUpdate func()) error {
op.CompositeMode = CompositeModeCopy
op.Filter = filterScreen
_ = c.screen.DrawImage(c.offscreen, op)
}
if err := restorable.ResolveStaleImages(); err != nil {
return err