Ver Fonte

Merge branch 'next' of https://github.com/blackberry-gaming/GamePlay into next-kcunney

Kieran Cunney há 13 anos atrás
pai
commit
6bb69b1345
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      gameplay/src/MeshBatch.cpp

+ 1 - 1
gameplay/src/MeshBatch.cpp

@@ -114,7 +114,7 @@ bool MeshBatch::resize(unsigned int capacity)
     // (we only know how many indices will be stored). Assume the worst case
     // for now, which is the same number of vertices as indices.
     unsigned int indexCapacity = vertexCapacity;
-    if (indexCapacity > USHRT_MAX)
+    if (_indexed && indexCapacity > USHRT_MAX)
     {
         GP_ERROR("Index capacity is greater than the maximum unsigned short value (%d > %d).", indexCapacity, USHRT_MAX);
         return false;