proper cleanup
This commit is contained in:
parent
d114f5bb9c
commit
5cc58defb8
|
@ -71,6 +71,10 @@ public class TextureAtlasAnimator implements Disposable {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// may need to dispose of the TextureAtlas's texture Pixmap that we obtained (depending on TextureData implementation)
|
||||||
|
if (textureData.disposePixmap())
|
||||||
|
textureImage.dispose();
|
||||||
|
|
||||||
// all good!
|
// all good!
|
||||||
animations.put(name, sequence);
|
animations.put(name, sequence);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue