diff --git a/src/osgPlugins/ive/DrawElementsUByte.cpp b/src/osgPlugins/ive/DrawElementsUByte.cpp index f52c3ee62..ed76ac209 100644 --- a/src/osgPlugins/ive/DrawElementsUByte.cpp +++ b/src/osgPlugins/ive/DrawElementsUByte.cpp @@ -34,7 +34,7 @@ void DrawElementsUByte::write(DataOutputStream* out){ // Write array length and its elements. out->writeInt(size()); for(unsigned int i=0; iwriteUChar(((osg::VectorUByte)(*this))[i]); + out->writeUChar((*this)[i]); } } diff --git a/src/osgPlugins/ive/DrawElementsUInt.cpp b/src/osgPlugins/ive/DrawElementsUInt.cpp index 07641e7ec..6ed1be61d 100644 --- a/src/osgPlugins/ive/DrawElementsUInt.cpp +++ b/src/osgPlugins/ive/DrawElementsUInt.cpp @@ -34,7 +34,7 @@ void DrawElementsUInt::write(DataOutputStream* out){ // Write array length and its elements. out->writeInt(size()); for(unsigned int i=0; iwriteUInt(((osg::VectorUInt)(*this))[i]); + out->writeUInt((*this)[i]); } } diff --git a/src/osgPlugins/ive/DrawElementsUShort.cpp b/src/osgPlugins/ive/DrawElementsUShort.cpp index 2e502da2b..f2f10c9ac 100644 --- a/src/osgPlugins/ive/DrawElementsUShort.cpp +++ b/src/osgPlugins/ive/DrawElementsUShort.cpp @@ -34,7 +34,7 @@ void DrawElementsUShort::write(DataOutputStream* out){ // Write array length and its elements. out->writeInt(size()); for(unsigned int i=0; iwriteUShort(((osg::VectorUShort)(*this))[i]); + out->writeUShort((*this)[i]); } }