diff --git a/src/osgPlugins/iv/osgvisitor.cpp b/src/osgPlugins/iv/osgvisitor.cpp index ee78dc64d..09be287fd 100644 --- a/src/osgPlugins/iv/osgvisitor.cpp +++ b/src/osgPlugins/iv/osgvisitor.cpp @@ -187,8 +187,8 @@ osg::PrimitiveSet *generatePrimitive(PolygonList &polys, unsigned primsize, unsi } // Now will generate the indices and the primitive if (numvertices < 65536) { - unsigned short *indices=new unsigned short[count*primsize]; - unsigned count2=0; + GLushort *indices=new GLushort[count*primsize]; + unsigned int count2=0; for (i=0;i