]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
PAL13141
authorasl <asl@opencascade.com>
Fri, 25 Aug 2006 05:16:18 +0000 (05:16 +0000)
committerasl <asl@opencascade.com>
Fri, 25 Aug 2006 05:16:18 +0000 (05:16 +0000)
src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx

index f7e33812cfecf221d1593eb29c6b54a4b8a6ddcf..344006009ee7bd3435e5b2f482ff1fc7650bcc20 100755 (executable)
@@ -214,7 +214,8 @@ VISU_OpenGLPointSpriteMapper::VISU_OpenGLPointSpriteMapper()
 //-----------------------------------------------------------------------------
 VISU_OpenGLPointSpriteMapper::~VISU_OpenGLPointSpriteMapper()
 {
-  glDeleteTextures( 1, &PointSpriteTexture );
+  if( PointSpriteTexture>0 )
+    glDeleteTextures( 1, &PointSpriteTexture );
 
   if( this->LastWindow )
     this->ReleaseGraphicsResources(this->LastWindow);