X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FOpenGl%2FOpenGl_Structure.cxx;h=60b5aec151f870ef1152c664c1ab363d4793594d;hb=32ca771129cf170c0f094182d77edda967bec5f6;hpb=9ce99357a4d06be37834b475b2b14102b3fe7f74 diff --git a/src/OpenGl/OpenGl_Structure.cxx b/src/OpenGl/OpenGl_Structure.cxx index bfb99381fd..60b5aec151 100644 --- a/src/OpenGl/OpenGl_Structure.cxx +++ b/src/OpenGl/OpenGl_Structure.cxx @@ -605,7 +605,7 @@ void OpenGl_Structure::Render (const Handle(OpenGl_Workspace) &theWorkspace) con for (OpenGl_ClippingIterator aPlaneIt (aCtx->Clipping()); aPlaneIt.More(); aPlaneIt.Next()) { const Handle(Graphic3d_ClipPlane)& aPlane = aPlaneIt.Value(); - if (!aPlane->IsOn()) + if (aPlaneIt.IsDisabled()) { continue; }