internal/atlas: refactoring

This commit is contained in:
Hajime Hoshi 2023-08-06 15:56:35 +09:00
parent 0433dfac99
commit 32ed22f91c

View File

@ -82,13 +82,8 @@ func putImagesOnSourceBackend(graphicsDriver graphicsdriver.Graphics) error {
return err return err
} }
i.usedAsSourceCount = 0 i.usedAsSourceCount = 0
delete(imagesToPutOnSourceBackend, i)
} }
} 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)
} }
for i := range imagesBackendJustCreated { for i := range imagesBackendJustCreated {