From: kgv Date: Thu, 2 May 2019 13:58:06 +0000 (+0300) Subject: 0030516: Visualization - Pointer to an OpenGl_Structure is deleted and accessed later... X-Git-Tag: V7_4_0_beta~153 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=49dfdb7a977aa41a196e27727229b9b55413b8b3;p=occt-copy.git 0030516: Visualization - Pointer to an OpenGl_Structure is deleted and accessed later after PrsMgr_Presentation::Highlight() Do not set IsForHighlight flag for already displayed presentation. --- diff --git a/src/PrsMgr/PrsMgr_Presentation.cxx b/src/PrsMgr/PrsMgr_Presentation.cxx index fa647c6bc2..190fc3b7e3 100644 --- a/src/PrsMgr/PrsMgr_Presentation.cxx +++ b/src/PrsMgr/PrsMgr_Presentation.cxx @@ -83,13 +83,12 @@ void PrsMgr_Presentation::display (const Standard_Boolean theIsHighlight) { if (!base_type::IsDisplayed()) { - base_type::SetIsForHighlight (theIsHighlight); + base_type::SetIsForHighlight (theIsHighlight); // optimization - disable frustum culling for this presentation base_type::Display(); } else if (!base_type::IsVisible()) { base_type::SetVisible (Standard_True); - base_type::SetIsForHighlight (theIsHighlight); } }