0028127: Visualization - transparent object breaks Z-Layer depth buffer clear
[occt.git] / src / OpenGl / OpenGl_Layer.cxx
index 6b6c05e..c9bb46b 100644 (file)
@@ -663,12 +663,7 @@ void OpenGl_Layer::Render (const Handle(OpenGl_Workspace)&   theWorkspace,
                            const OpenGl_GlobalLayerSettings& theDefaultSettings) const
 {
   const Graphic3d_PolygonOffset anAppliedOffsetParams = theWorkspace->AppliedPolygonOffset();
-
-  // separate depth buffers
-  if (myLayerSettings.ToClearDepth())
-  {
-    glClear (GL_DEPTH_BUFFER_BIT);
-  }
+  // myLayerSettings.ToClearDepth() is handled outside
 
   // handle depth test
   if (myLayerSettings.ToEnableDepthTest())