mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 12:32:05 +01:00
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:
parent
deab21fad1
commit
1c0f5e09d5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user