diff --git a/src/osgText/GlyphGeometry.cpp b/src/osgText/GlyphGeometry.cpp index 7dee68d75..8de748d34 100644 --- a/src/osgText/GlyphGeometry.cpp +++ b/src/osgText/GlyphGeometry.cpp @@ -691,6 +691,13 @@ OSGTEXT_EXPORT osg::Geometry* computeTextGeometry(osg::Geometry* glyphGeometry, // if we don't have a face we can't create any 3d text if (!face) return 0; + // face doesn't have enough vertices on it to represent a polygon. + if (face->size()<3) + { + OSG_NOTICE<<"Face does not have enough elements to be able to represent a polygon, face->size() = "<size()<