Removed erroneous casts that would have been causing uneccessary copying.

This commit is contained in:
Robert Osfield
2004-09-26 19:01:27 +00:00
parent 37c8b3a6fb
commit 0e4f7077ab
3 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ void DrawElementsUByte::write(DataOutputStream* out){
// Write array length and its elements.
out->writeInt(size());
for(unsigned int i=0; i<size(); i++){
out->writeUChar(((osg::VectorUByte)(*this))[i]);
out->writeUChar((*this)[i]);
}
}

View File

@@ -34,7 +34,7 @@ void DrawElementsUInt::write(DataOutputStream* out){
// Write array length and its elements.
out->writeInt(size());
for(unsigned int i=0; i<size(); i++){
out->writeUInt(((osg::VectorUInt)(*this))[i]);
out->writeUInt((*this)[i]);
}
}

View File

@@ -34,7 +34,7 @@ void DrawElementsUShort::write(DataOutputStream* out){
// Write array length and its elements.
out->writeInt(size());
for(unsigned int i=0; i<size(); i++){
out->writeUShort(((osg::VectorUShort)(*this))[i]);
out->writeUShort((*this)[i]);
}
}