diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index b55908849..94be42c7d 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -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);