mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
internal/atlas: refactoring
This commit is contained in:
parent
0433dfac99
commit
32ed22f91c
@ -82,13 +82,8 @@ func putImagesOnSourceBackend(graphicsDriver graphicsdriver.Graphics) error {
|
||||
return err
|
||||
}
|
||||
i.usedAsSourceCount = 0
|
||||
delete(imagesToPutOnSourceBackend, i)
|
||||
}
|
||||
}
|
||||
|
||||
// Reset the images. The images will be registered again when it is used as a rendering source.
|
||||
for k := range imagesToPutOnSourceBackend {
|
||||
delete(imagesToPutOnSourceBackend, k)
|
||||
delete(imagesToPutOnSourceBackend, i)
|
||||
}
|
||||
|
||||
for i := range imagesBackendJustCreated {
|
||||
|
Loading…
Reference in New Issue
Block a user