From 0e4f7077ab0a3f8aa1fafd32ccdd80ca430a1774 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 26 Sep 2004 19:01:27 +0000 Subject: [PATCH] Removed erroneous casts that would have been causing uneccessary copying. --- src/osgPlugins/ive/DrawElementsUByte.cpp | 2 +- src/osgPlugins/ive/DrawElementsUInt.cpp | 2 +- src/osgPlugins/ive/DrawElementsUShort.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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]); } }