mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-18 07:57:31 +08:00
0024797: TKOpenGl, OpenGl_PointSprite - the assert is absent during incorrect object releasing.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user