From 4cb05cfadee631ff14eed1f3b11c014f14047e06 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 25 Aug 2006 05:16:18 +0000 Subject: [PATCH] PAL13141 --- src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2