From 54c27e36bf68630c01fe6207a4cd10525ef7f6de Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 10 Jul 2002 22:38:02 +0000 Subject: [PATCH] Updates for new use of GLushort instead of osg::ushort in GeoSet index pointer. --- src/osgPlugins/osg/GeoSet.cpp | 12 ++++++------ src/osgPlugins/pfb/ConvertFromPerformer.cpp | 8 ++++---- src/osgPlugins/pfb/ConvertToPerformer.cpp | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) 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 )