vtkChartXYZ has unbalanced popMatrix/pushMatrix in certain conditions. Causes OpenGL error.
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
By inspection this appears to be an issue in vtkChartXYZ::DrawTickMarks The PopMatrix() calls below is not matched by a a PushMatrix() when tickSpacing==-1 ( which can happen)
void vtkChartXYZ::DrawTickMarks(vtkContext2D *painter) { vtkContext3D *context = painter->GetContext3D(); float bounds[4];
// draw points instead of lines context->ApplyPen(this->Pen.GetPointer());
// treat each axis separately for (int axis = 0; axis < 3; ++axis) { // pop matrix since we'll be drawing text in 2D before we draw the // actual tick marks context->PopMatrix();
.... if (tickSpacing == -1) { continue; } ....
The fix is to add a context->PushMatrix() before the continue statement.