|
|
@@ -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;
|