From 8ca58a51a710e3024b0c6bcf21c01fc2181a6cf8 Mon Sep 17 00:00:00 2001 From: kgv Date: Mon, 7 Mar 2022 02:13:22 +0300 Subject: [PATCH] 0032866: Visualization, TKOpenGles - FitAll() is broken when performance counters are displayed OpenGl_View::MinMaxValues() - added missing theToIncludeAuxiliary check. --- src/OpenGl/OpenGl_View.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); -- 2.39.5