Skip to content

Commit

Permalink
COMP: OpenGLVertexBufferObject fails to compile with clang3
Browse files Browse the repository at this point in the history
On OSx, clang3.0
OpenGLVertexBufferObject fails to compile with the error:

error: expected a class or namespace
  • Loading branch information
lorensen committed Jan 20, 2017
1 parent 31f2f2f commit 474f4ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Rendering/OpenGL2/vtkOpenGLVertexBufferObject.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,8 @@ void vtkOpenGLVertexBufferObject::AppendDataArray(
int offset = this->NumberOfTuples * this->Stride/sizeof(float);

// compute auto Shift & Scale on first block
typedef vtkOpenGLVertexBufferObject::ShiftScaleMethod ShiftScaleMethod;
if (offset == 0 &&
this->GetCoordShiftAndScaleMethod() == ShiftScaleMethod::AUTO_SHIFT_SCALE)
this->GetCoordShiftAndScaleMethod() == vtkOpenGLVertexBufferObject::AUTO_SHIFT_SCALE)
{
std::vector<double> shift;
std::vector<double> scale;
Expand Down

0 comments on commit 474f4ae

Please sign in to comment.