Fixed examples/osghud and osgtext Makefile's to include osgText.

This commit is contained in:
Robert Osfield
2003-03-08 21:39:40 +00:00
parent a78600af67
commit 397edcd579
5 changed files with 5 additions and 5 deletions

View File

@@ -494,7 +494,7 @@ void DrawShapeVisitor::apply(const TriangleMesh& mesh)
{
glBegin(GL_TRIANGLES);
for(unsigned int i=0;i<indices->getNumElements();i+=3)
for(unsigned int i=0;i+2<indices->getNumElements();i+=3)
{
const osg::Vec3& v1=(*vertices)[indices->index(i)];
const osg::Vec3& v2=(*vertices)[indices->index(i+1)];