- switched to using shorts instead of float/half-float

- fixed flickering caused by stencil/scissor combination on nexus
- added blending option for areas in rendertheme
This commit is contained in:
Hannes Janetzek
2012-08-18 04:34:03 +02:00
parent 7f573f0ac4
commit 1cf0c02dd2
21 changed files with 855 additions and 802 deletions

View File

@@ -39,7 +39,6 @@ public class GLMapTile extends MapTile {
public GLMapTile(long tileX, long tileY, byte zoomLevel) {
super(tileX, tileY, zoomLevel);
mScale = 1;
isDrawn = false;
mTextureID = -1;
}

View File

@@ -212,7 +212,7 @@ public class MapRenderer implements org.mapsforge.android.IMapRenderer {
newTiles[tiles++] = tile;
if (!tile.isDrawn || (tile.getScale() != scale)) {
if (!tile.isReady || (tile.getScale() != scale)) {
tile.isLoading = true;
// approximation for TileScheduler
if (tileY < tileTop || tileY > tileBottom || tileX < tileLeft
@@ -455,7 +455,7 @@ public class MapRenderer implements org.mapsforge.android.IMapRenderer {
}
tile.setScale(mMapGeneratorJob.getScale());
tile.isDrawn = true;
tile.isReady = true;
tile.isLoading = false;
mMapGeneratorJob = null;