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