diff --git a/Rendering/OpenGL2/vtkCompositePolyDataMapper2.cxx b/Rendering/OpenGL2/vtkCompositePolyDataMapper2.cxx index da27d686020a7b2fd33286f1275790c693a9f11b..f8c39bf813763a39e5c36d9fbde00a6789905a24 100644 --- a/Rendering/OpenGL2/vtkCompositePolyDataMapper2.cxx +++ b/Rendering/OpenGL2/vtkCompositePolyDataMapper2.cxx @@ -401,6 +401,10 @@ void vtkCompositePolyDataMapper2::RenderPieceDraw( { // First we do the triangles, update the shader, set uniforms, etc. this->UpdateShaders(this->Tris, ren, actor); + if (!this->HaveWideLines(ren,actor) && representation == VTK_WIREFRAME) + { + glLineWidth(actor->GetProperty()->GetLineWidth()); + } this->Tris.IBO->Bind(); GLenum mode = (representation == VTK_POINTS) ? GL_POINTS : (representation == VTK_WIREFRAME) ? GL_LINES : GL_TRIANGLES;