From 28ce0c232b6d1a5b50b72d6dcd9e0a3a06c5518a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 26 Jan 2004 14:52:11 +0000 Subject: [PATCH] Re-enabled the unref image of texture apply, since the bug of disappearing textures was due to a bug in DatabasePager. --- src/osgPlugins/txp/TXPParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/txp/TXPParser.cpp b/src/osgPlugins/txp/TXPParser.cpp index 60195abf4..9023b0d5a 100644 --- a/src/osgPlugins/txp/TXPParser.cpp +++ b/src/osgPlugins/txp/TXPParser.cpp @@ -1276,7 +1276,7 @@ osg::Texture2D* txp::getLocalTexture(trpgrImageHelper& image_helper, const trpgT osg_texture = new osg::Texture2D(); // make sure the Texture unref's the Image after apply, when it is no longer needed. - //osg_texture->setUnRefImageDataAfterApply(true); + osg_texture->setUnRefImageDataAfterApply(true); osg::Image* image = new osg::Image; char* data = 0L; @@ -1348,7 +1348,7 @@ osg::Texture2D* txp::getTemplateTexture(trpgrImageHelper& image_helper, trpgLoca osg_texture = new osg::Texture2D(); // make sure the Texture unref's the Image after apply, when it is no longer needed. - //osg_texture->setUnRefImageDataAfterApply(true); + osg_texture->setUnRefImageDataAfterApply(true); osg::Image* image = new osg::Image; char* data = 0L;