Commit bd8e0aca authored by Ken Martin's avatar Ken Martin

Fix an atom rendering performance regression

parent fa86e870
......@@ -500,17 +500,13 @@ size_t vtkOpenGLStickMapperCreateTriangleIndexBuffer(
//-------------------------------------------------------------------------
bool vtkOpenGLStickMapper::GetNeedToRebuildBufferObjects(
vtkRenderer *ren,
vtkRenderer *vtkNotUsed(ren),
vtkActor *act)
{
// picking state changing always requires a rebuild
vtkHardwareSelector* selector = ren->GetSelector();
bool picking = (ren->GetIsPicking() || selector != NULL);
if (this->VBOBuildTime < this->GetMTime() ||
this->VBOBuildTime < act->GetMTime() ||
this->VBOBuildTime < this->CurrentInput->GetMTime() ||
this->LastSelectionState || picking)
this->VBOBuildTime < this->SelectionStateChanged)
{
return true;
}
......
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