make Layer.cleanup public

This commit is contained in:
Hannes Janetzek 2013-04-30 13:23:17 +02:00
parent 2d0d76d245
commit cac05dbf66
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -263,7 +263,7 @@ public final class TextLayer extends TextureLayer {
}
@Override
protected void clear() {
public void clear() {
TextureItem.releaseAll(textures);
labels = null;