no more maxIndices per texture
This commit is contained in:
parent
b7aaaef485
commit
807e5c4f30
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user