diff --git a/src/osgPlugins/osg/GeoSet.cpp b/src/osgPlugins/osg/GeoSet.cpp index 25da6f4df..8cd440c71 100644 --- a/src/osgPlugins/osg/GeoSet.cpp +++ b/src/osgPlugins/osg/GeoSet.cpp @@ -926,7 +926,7 @@ bool GeoSet_readIndexData(Input& fr, const char* IndexName, GeoSet::IndexPointer if (is_ushort) { // read ushorts... - osg::ushort* coordIndexList = osgNew osg::ushort[capacity]; + GLushort* coordIndexList = osgNew GLushort[capacity]; while (!fr.eof() && fr[0].getNoNestedBrackets()>entry) { @@ -938,8 +938,8 @@ bool GeoSet_readIndexData(Input& fr, const char* IndexName, GeoSet::IndexPointer { int oldCapacity = capacity; while(capacity<=size) capacity *= 2; - osg::ushort* oldList = coordIndexList; - coordIndexList = osgNew osg::ushort[capacity]; + GLushort* oldList = coordIndexList; + coordIndexList = osgNew GLushort[capacity]; for(int i=0;ientry) { @@ -974,8 +974,8 @@ bool GeoSet_readIndexData(Input& fr, const char* IndexName, GeoSet::IndexPointer { int oldCapacity = capacity; while(capacity<=size) capacity *= 2; - osg::uint* oldList = coordIndexList; - coordIndexList = osgNew osg::uint[capacity]; + GLuint* oldList = coordIndexList; + coordIndexList = osgNew GLuint[capacity]; for(int i=0;igetCoords(); - osg::ushort *ilist = cindex._ptr._ushort; + GLushort *ilist = cindex._ptr._ushort; // copy the vertex coordinates across. if( coords )