diff --git a/src/osgPlugins/txp/TXPParser.cpp b/src/osgPlugins/txp/TXPParser.cpp index 9023b0d5a..60195abf4 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;