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:
parent
b92a64cc68
commit
95eef64da2
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user