From: kgv Date: Sun, 6 Mar 2022 23:13:22 +0000 (+0300) Subject: 0032866: Visualization, TKOpenGles - FitAll() is broken when performance counters... X-Git-Tag: V7_7_0_beta~155 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=8ca58a51a710e3024b0c6bcf21c01fc2181a6cf8;p=occt.git 0032866: Visualization, TKOpenGles - FitAll() is broken when performance counters are displayed OpenGl_View::MinMaxValues() - added missing theToIncludeAuxiliary check. --- diff --git a/src/OpenGl/OpenGl_View.cxx b/src/OpenGl/OpenGl_View.cxx index 54cc8b48b2..375e366f02 100644 --- a/src/OpenGl/OpenGl_View.cxx +++ b/src/OpenGl/OpenGl_View.cxx @@ -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));