Commit 3538ec08 authored by Steven Hahn's avatar Steven Hahn Committed by David E. DeMarle

Use public instead of protected member functions

(cherry picked from commit 29f8f9ff)
parent 373b2a55
......@@ -248,16 +248,16 @@ void vtkAppendVBOWorker<destType>::operator() (DataArray *array)
}
destType *VBOit =
reinterpret_cast<destType *>(&this->VBO->PackedVBO[this->Offset]);
reinterpret_cast<destType *>(&this->VBO->GetPackedVBO()[this->Offset]);
// Accessor for the data array
vtkDataArrayAccessor<DataArray> data(array);
// compute extra padding required
int bytesNeeded =
this->VBO->DataTypeSize*this->VBO->NumberOfComponents;
this->VBO->GetDataTypeSize() * this->VBO->GetNumberOfComponents();
int extraComponents =
((4 - (bytesNeeded % 4)) % 4)/this->VBO->DataTypeSize;
((4 - (bytesNeeded % 4)) % 4) / this->VBO->GetDataTypeSize();
// If not shift & scale
if(!this->VBO->GetCoordShiftAndScaleEnabled())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment