mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0032866: Visualization, TKOpenGles - FitAll() is broken when performance counters are displayed
OpenGl_View::MinMaxValues() - added missing theToIncludeAuxiliary check.
This commit is contained in:
parent
acce2c1448
commit
8ca58a51a7
@ -805,7 +805,9 @@ Bnd_Box OpenGl_View::MinMaxValues (const Standard_Boolean theToIncludeAuxiliary)
|
|||||||
Bnd_Box aBox = base_type::MinMaxValues (theToIncludeAuxiliary);
|
Bnd_Box aBox = base_type::MinMaxValues (theToIncludeAuxiliary);
|
||||||
|
|
||||||
// make sure that stats overlay isn't clamped on hardware with unavailable depth clamping
|
// 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),
|
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));
|
gp_Pnt (float(myWindow->Width() / 2.0), float(myWindow->Height() / 2.0), 0.0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user