mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 19:22:49 +01:00
restorable: Skip resolving stale images when possible
This commit is contained in:
parent
e6143d0a2b
commit
2507379494
@ -57,6 +57,9 @@ func ResolveStaleImages() error {
|
|||||||
if err := graphics.FlushCommands(); err != nil {
|
if err := graphics.FlushCommands(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if !restoringEnabled {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return theImages.resolveStaleImages()
|
return theImages.resolveStaleImages()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user