]> OCCT Git - occt.git/commitdiff
0032866: Visualization, TKOpenGles - FitAll() is broken when performance counters... IR-2022-03-11
authorkgv <kgv@opencascade.com>
Sun, 6 Mar 2022 23:13:22 +0000 (02:13 +0300)
committerkgv <kgv@opencascade.com>
Sun, 6 Mar 2022 23:13:22 +0000 (02:13 +0300)
OpenGl_View::MinMaxValues() - added missing theToIncludeAuxiliary check.

src/OpenGl/OpenGl_View.cxx

index 54cc8b48b277c30579c92c8fd2a0193d193995de..375e366f0237bec24d45ce6fa64bf23a4f6aee23 100644 (file)
@@ -805,7 +805,9 @@ Bnd_Box OpenGl_View::MinMaxValues (const Standard_Boolean theToIncludeAuxiliary)
   Bnd_Box aBox = base_type::MinMaxValues (theToIncludeAuxiliary);
 
   // make sure that stats overlay isn't clamped on hardware with unavailable depth clamping
-  if (myRenderParams.ToShowStats && !myWorkspace->GetGlContext()->arbDepthClamp)
+  if (theToIncludeAuxiliary
+  &&  myRenderParams.ToShowStats
+  && !myWorkspace->GetGlContext()->arbDepthClamp)
   {
     Bnd_Box aStatsBox (gp_Pnt (float(myWindow->Width() / 2.0), float(myWindow->Height() / 2.0), 0.0),
                        gp_Pnt (float(myWindow->Width() / 2.0), float(myWindow->Height() / 2.0), 0.0));