0024797: TKOpenGl, OpenGl_PointSprite - the assert is absent during incorrect object releasing.

This commit is contained in:
osa
2014-04-04 19:31:48 +04:00
committed by apn
parent e30616a780
commit ea095e0edb

View File

@@ -53,6 +53,9 @@ void OpenGl_PointSprite::Release (const OpenGl_Context* theGlCtx)
{
if (myBitmapList != 0)
{
Standard_ASSERT_RETURN (theGlCtx != NULL,
"OpenGl_PointSprite destroyed without GL context! Possible GPU memory leakage...",);
if (theGlCtx->IsValid())
{
glDeleteLists (myBitmapList, 1);