// function : Release
// purpose :
// =======================================================================
-void OpenGl_AspectMarker::Release (const Handle(OpenGl_Context)& theCtx)
+void OpenGl_AspectMarker::Release (OpenGl_Context* theCtx)
{
if (!myResources.Sprite.IsNull())
{
- if (!theCtx.IsNull())
+ if (theCtx)
{
if (myResources.SpriteKey.IsEmpty())
{
myResources.SpriteAKey.Clear();
myResources.ResetSpriteReadiness();
- if (!myResources.ShaderProgram.IsNull() && !theCtx.IsNull())
+ if (!myResources.ShaderProgram.IsNull() && theCtx)
{
theCtx->ShaderManager()->Unregister (myResources.ShaderProgramId,
myResources.ShaderProgram);