mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
internal/shareable: Optimization
This commit is contained in:
parent
f1848a6d46
commit
e60e6ca5ac
@ -105,7 +105,9 @@ func makeImagesShared() error {
|
||||
}
|
||||
|
||||
// Reset the images. The images will be registered again when it is used as a rendering source.
|
||||
imagesToMakeShared = map[*Image]struct{}{}
|
||||
for k := range imagesToMakeShared {
|
||||
delete(imagesToMakeShared, k)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user