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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user