1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

OCC22199 OpenGL memory leaks in TKOpenGl

This commit is contained in:
KGV
2011-04-28 15:07:08 +00:00
committed by bugmaster
parent 28e8503452
commit 161c447667
17 changed files with 888 additions and 262 deletions

View File

@@ -342,8 +342,10 @@ void AIS_TexturedShape::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aP
BRepTools::Update(myshape);
Handle(Graphic3d_StructureManager) aStrucMana = GetContext()->MainPrsMgr()->StructureManager();
myAspect = (new Prs3d_ShadingAspect())->Aspect();
{
Handle(Prs3d_ShadingAspect) aPrs3d_ShadingAspect = new Prs3d_ShadingAspect;
myAspect = aPrs3d_ShadingAspect->Aspect();
}
if (!DoMapTexture)
{
myAspect->SetTextureMapOff();