make Layer.cleanup public
This commit is contained in:
@@ -557,7 +557,13 @@ public final class LineLayer extends Layer {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void clear() {
|
||||
public void clear() {
|
||||
if (vertexItems != null) {
|
||||
VertexItem.pool.releaseAll(vertexItems);
|
||||
vertexItems = null;
|
||||
curItem = null;
|
||||
}
|
||||
verticesCnt = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -263,7 +263,7 @@ public final class TextLayer extends TextureLayer {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void clear() {
|
||||
public void clear() {
|
||||
TextureItem.releaseAll(textures);
|
||||
labels = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user