1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0024315: Use delayed release of resources in OpenGl aspects for consistency

- Do delayed release of face texture resource of OpenGl_AspectFace, point sprite texture of OpenGl_AspectMarker
This commit is contained in:
apl 2013-11-18 20:38:26 +04:00 committed by bugmaster
parent b92a64cc68
commit 95eef64da2
2 changed files with 3 additions and 3 deletions

View File

@ -443,7 +443,7 @@ void OpenGl_AspectFace::Resources::BuildTexture (const Handle(OpenGl_Workspace)&
else
{
Texture.Nullify(); // we need nullify all handles before ReleaseResource() call
aContext->ReleaseResource (TextureId);
aContext->ReleaseResource (TextureId, Standard_True);
}
}

View File

@ -1578,7 +1578,7 @@ void OpenGl_AspectMarker::Resources::BuildSprites (const Handle(OpenGl_Workspace
else
{
Sprite.Nullify(); // we need nullify all handles before ReleaseResource() call
aContext->ReleaseResource (SpriteKey);
aContext->ReleaseResource (SpriteKey, Standard_True);
}
}
SpriteKey = aNewKey;
@ -1595,7 +1595,7 @@ void OpenGl_AspectMarker::Resources::BuildSprites (const Handle(OpenGl_Workspace
else
{
SpriteA.Nullify(); // we need nullify all handles before ReleaseResource() call
aContext->ReleaseResource (SpriteKey);
aContext->ReleaseResource (SpriteAKey, Standard_True);
}
}
SpriteAKey = aNewKeyA;