throw exception when BufferObjects got lost

This commit is contained in:
Hannes Janetzek
2013-09-28 22:35:22 +02:00
parent 3e4aa25446
commit 538998cb83

View File

@@ -95,7 +95,7 @@ public final class BufferObject {
if (pool[t] == null) { if (pool[t] == null) {
if (counter[t] != 0) if (counter[t] != 0)
Log.d(TAG, "BUG: missing BufferObjects: " + counter); throw new IllegalStateException("lost BufferObjects: " + counter[t]);
createBuffers(target, 10); createBuffers(target, 10);
counter[t] += 10; counter[t] += 10;