Not working LineStipplePattern in vtkProperty for OpenGL2
See code \VTK-8.0.1\Rendering\OpenGL2\vtkOpenGLProperty.cxx
// Implement base class method.
void vtkOpenGLProperty::Render(vtkActor *anActor, vtkRenderer *ren)
{
// Set the LineStipple
if (this->LineStipplePattern != 0xFFFF)
{
// glEnable(GL_LINE_STIPPLE);
// glLineStipple(this->LineStippleRepeatFactor,
// static_cast<GLushort>(this->LineStipplePattern));
//vtkOpenGLGL2PSHelper::EnableStipple(); // must be called after glLineStipple
}
else
{
// still need to set this although we are disabling. else the ATI X1600
// (for example) still manages to stipple under certain conditions.
// glLineStipple(this->LineStippleRepeatFactor,
// static_cast<GLushort>(this->LineStipplePattern));
// glDisable(GL_LINE_STIPPLE);
//vtkOpenGLGL2PSHelper::DisableStipple();
}
Edited by Ben Boeckel