From: asl Date: Fri, 25 Aug 2006 05:16:18 +0000 (+0000) Subject: PAL13141 X-Git-Tag: mergefrom_BR_For_OCT_611_04Sep06~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4cb05cfadee631ff14eed1f3b11c014f14047e06;p=modules%2Fvisu.git PAL13141 --- diff --git a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx index f7e33812..34400600 100755 --- a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx +++ b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx @@ -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);