From 0793c4f9426800d6ba8686754b91c068f95275a4 Mon Sep 17 00:00:00 2001 From: kgv Date: Wed, 14 Feb 2018 00:07:48 +0300 Subject: [PATCH] 0029503: Visualization, TKOpenGl - fix access violation due to misprint in OpenGl_AspectMarker Misprint mySprite->mySpriteA has been corrected. --- src/OpenGl/OpenGl_AspectMarker.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenGl/OpenGl_AspectMarker.cxx b/src/OpenGl/OpenGl_AspectMarker.cxx index 3d96ccea1e..d12df9a0cb 100644 --- a/src/OpenGl/OpenGl_AspectMarker.cxx +++ b/src/OpenGl/OpenGl_AspectMarker.cxx @@ -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); }