release TileSet after rendering
This commit is contained in:
@@ -147,6 +147,11 @@ public class ExtrusionRenderLayer extends RenderLayer {
|
|||||||
isReady = ready > 0;
|
isReady = ready > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void compile() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private static ExtrusionLayer getLayer(MapTile t) {
|
private static ExtrusionLayer getLayer(MapTile t) {
|
||||||
if (t.layers != null && t.layers.extrusionLayers != null
|
if (t.layers != null && t.layers.extrusionLayers != null
|
||||||
&& t.state == MapTile.STATE_READY)
|
&& t.state == MapTile.STATE_READY)
|
||||||
@@ -312,6 +317,8 @@ public class ExtrusionRenderLayer extends RenderLayer {
|
|||||||
GLES20.glDisable(GLES20.GL_CULL_FACE);
|
GLES20.glDisable(GLES20.GL_CULL_FACE);
|
||||||
|
|
||||||
GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);
|
GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||||
|
|
||||||
|
mTileLayer.releaseTiles(mTileSet);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void setMatrix(MapPosition pos, Matrices m,
|
private static void setMatrix(MapPosition pos, Matrices m,
|
||||||
@@ -432,10 +439,4 @@ public class ExtrusionRenderLayer extends RenderLayer {
|
|||||||
public void setAlpha(float a) {
|
public void setAlpha(float a) {
|
||||||
mAlpha = a;
|
mAlpha = a;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void compile() {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user