mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0029503: Visualization, TKOpenGl - fix access violation due to misprint in OpenGl_AspectMarker
Misprint mySprite->mySpriteA has been corrected.
This commit is contained in:
parent
b17e5bae1a
commit
0793c4f942
@ -1644,7 +1644,7 @@ void OpenGl_AspectMarker::Resources::BuildSprites (const Handle(OpenGl_Context)&
|
||||
}
|
||||
else
|
||||
{
|
||||
const TCollection_AsciiString anOldKey = mySprite->First()->ResourceId();
|
||||
const TCollection_AsciiString anOldKey = mySpriteA->First()->ResourceId();
|
||||
mySpriteA.Nullify(); // we need nullify all handles before ReleaseResource() call
|
||||
theCtx->ReleaseResource (anOldKey, Standard_True);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user