Improved the DrawElements selction

This commit is contained in:
Robert Osfield
2017-05-25 13:29:42 +01:00
parent 6d4afbbb49
commit 09b37224ff

View File

@@ -2105,7 +2105,7 @@ void Text::GlyphQuads::updateQuadIndices()
OSG_WARN << "size of _coords is not divisible by 4.";
}
if (numIndices>16384 && _quadIndices->getType()!=osg::PrimitiveSet::DrawElementsUIntPrimitiveType)
if (numCoords>=16384 && _quadIndices->getType()!=osg::PrimitiveSet::DrawElementsUIntPrimitiveType)
{
// if we need more indices
_quadIndices = new DrawElementsUInt(PrimitiveSet::TRIANGLES);