0025305: Visualization, TKOpenGl - support stipple line aspects within built-in GLSL...
[occt.git] / src / OpenGl / OpenGl_GraphicDriver_Layer.cxx
index 2c707a9..be0389e 100644 (file)
@@ -270,17 +270,13 @@ void OpenGl_GraphicDriver::SetLineAttributes (const Standard_Integer   theType,
 
   if (TheLayerProp.LineType != theType)
   {
-    Handle(OpenGl_LineAttributes) aLineAttribs;
-    if (aCtx->GetResource ("OpenGl_LineAttributes", aLineAttribs))
-    {
-      TheLayerProp.LineType = theType;
-      aLineAttribs->SetTypeOfLine ((Aspect_TypeOfLine )theType);
-    }
+    TheLayerProp.LineType = theType;
+    aCtx->SetTypeOfLine ((Aspect_TypeOfLine) theType);
   }
   if (TheLayerProp.LineWidth != theWidth)
   {
     TheLayerProp.LineWidth = theWidth;
-    glLineWidth ((GLfloat )theWidth);
+    aCtx->SetLineWidth (theWidth);
   }
 }