Removed erroneous casts that would have been causing uneccessary copying.
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user