0026792: Visualization, Graphic3d - Z-fit support for transform persistence is missin...
[occt.git] / src / OpenGl / OpenGl_BVHTreeSelector.cxx
index f71f9bf..09298ea 100644 (file)
@@ -35,10 +35,8 @@ OpenGl_BVHTreeSelector::OpenGl_BVHTreeSelector()
 // =======================================================================
 void OpenGl_BVHTreeSelector::SetViewVolume (const Handle(Graphic3d_Camera)& theCamera)
 {
-  if (myWorldViewProjState == theCamera->WorldViewProjState())
-  {
+  if (!myWorldViewProjState.IsChanged (theCamera->WorldViewProjState()))
     return;
-  }
 
   myIsProjectionParallel = theCamera->IsOrthographic();