no more maxIndices per texture

This commit is contained in:
Hannes Janetzek 2012-11-03 15:22:06 +01:00
parent b7aaaef485
commit 807e5c4f30

View File

@ -119,8 +119,6 @@ public final class SymbolLayer extends TextureLayer {
textures = to; textures = to;
mCanvas.setBitmap(to.bitmap); mCanvas.setBitmap(to.bitmap);
// int maxIndices = TextureRenderer.MAX_ITEMS * TextureRenderer.INDICES_PER_SPRITE;
for (SymbolItem it = symbols; it != null;) { for (SymbolItem it = symbols; it != null;) {
float width, height; float width, height;
@ -143,7 +141,7 @@ public final class SymbolLayer extends TextureLayer {
} }
if (y + height > TEXTURE_HEIGHT) { // || curIndices == maxIndices) { if (y + height > TEXTURE_HEIGHT) {
Log.d(TAG, "reached max symbols: " + numIndices); Log.d(TAG, "reached max symbols: " + numIndices);
to.offset = offsetIndices; to.offset = offsetIndices;
@ -199,7 +197,6 @@ public final class SymbolLayer extends TextureLayer {
for (SymbolItem it2 = it;; it2 = it2.next) { for (SymbolItem it2 = it;; it2 = it2.next) {
if (it2 == null if (it2 == null
// || (curIndices == maxIndices)
|| (it.drawable != null && it2.drawable != it.drawable) || (it.drawable != null && it2.drawable != it.drawable)
|| (it.bitmap != null && it2.bitmap != it.bitmap)) { || (it.bitmap != null && it2.bitmap != it.bitmap)) {
it = it2; it = it2;