From ea095e0edbbd9fd3f5bf73d8e29ae314080dea74 Mon Sep 17 00:00:00 2001 From: osa Date: Fri, 4 Apr 2014 19:31:48 +0400 Subject: [PATCH] 0024797: TKOpenGl, OpenGl_PointSprite - the assert is absent during incorrect object releasing. --- src/OpenGl/OpenGl_PointSprite.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/OpenGl/OpenGl_PointSprite.cxx b/src/OpenGl/OpenGl_PointSprite.cxx index f3577adbb4..430e196f66 100755 --- a/src/OpenGl/OpenGl_PointSprite.cxx +++ b/src/OpenGl/OpenGl_PointSprite.cxx @@ -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); -- 2.39.5