mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/restorable: refactoring
This commit is contained in:
parent
d84b030300
commit
167c3435f7
@ -242,10 +242,8 @@ func (i *images) restore(graphicsDriver graphicsdriver.Graphics) error {
|
||||
current[i] = struct{}{}
|
||||
}
|
||||
for e := range edges {
|
||||
if _, ok := current[e.target]; ok {
|
||||
delete(current, e.target)
|
||||
}
|
||||
}
|
||||
for i := range current {
|
||||
delete(images, i)
|
||||
sorted = append(sorted, i)
|
||||
|
Loading…
Reference in New Issue
Block a user