X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FOpenGl%2FOpenGl_AspectsSprite.cxx;h=abaa6db0118968fce4d77127d4b174d5817a38b6;hb=ba00aab7a0f30b2a77d3faa4191249b32a9e03b0;hpb=aaf8d6a98d5aa23513bbb7f0e8528764e1e0ebb4 diff --git a/src/OpenGl/OpenGl_AspectsSprite.cxx b/src/OpenGl/OpenGl_AspectsSprite.cxx index 646f7281cb..abaa6db011 100644 --- a/src/OpenGl/OpenGl_AspectsSprite.cxx +++ b/src/OpenGl/OpenGl_AspectsSprite.cxx @@ -1767,7 +1767,7 @@ void OpenGl_AspectsSprite::build (const Handle(OpenGl_Context)& theCtx, theMarkerSize = Max ((Standard_ShortReal )anImage->Width(),(Standard_ShortReal )anImage->Height()); - aSprite->Init (theCtx, *anImage.operator->(), Graphic3d_TOT_2D); + aSprite->Init (theCtx, *anImage, Graphic3d_TOT_2D, true); if (!hadAlreadyAlpha) { if (anImageA.IsNull() @@ -1778,7 +1778,7 @@ void OpenGl_AspectsSprite::build (const Handle(OpenGl_Context)& theCtx, } if (!anImageA.IsNull()) { - aSpriteA->Init (theCtx, *anImageA.operator->(), Graphic3d_TOT_2D); + aSpriteA->Init (theCtx, *anImageA, Graphic3d_TOT_2D, true); } } }