fix: dont crash on restart
This commit is contained in:
parent
d0ad2f3bd4
commit
406bea404d
@ -139,6 +139,7 @@ public class TileManager {
|
|||||||
|
|
||||||
public void destroy() {
|
public void destroy() {
|
||||||
SINGLETON = null;
|
SINGLETON = null;
|
||||||
|
// there might be some leaks in here
|
||||||
// mRenderer = null;
|
// mRenderer = null;
|
||||||
// mTiles = null;
|
// mTiles = null;
|
||||||
// mTilesLoaded = null;
|
// mTilesLoaded = null;
|
||||||
@ -156,10 +157,7 @@ public class TileManager {
|
|||||||
mTiles = new MapTile[GLRenderer.CACHE_TILES];
|
mTiles = new MapTile[GLRenderer.CACHE_TILES];
|
||||||
mTilesLoaded = new ArrayList<MapTile>(30);
|
mTilesLoaded = new ArrayList<MapTile>(30);
|
||||||
|
|
||||||
// this is probably a good place to init these
|
mTilesSize = 0;
|
||||||
//VertexPool.init();
|
|
||||||
//QuadTree.init();
|
|
||||||
|
|
||||||
mUpdateCnt = 0;
|
mUpdateCnt = 0;
|
||||||
mInitial = true;
|
mInitial = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user