From 09b37224ffc7980b39a170ae51473cb0e9c182c9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 25 May 2017 13:29:42 +0100 Subject: [PATCH] Improved the DrawElements selction --- src/osgText/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);