From 8536e5dbdf97a3e0402dd94fa25adc2b78b796f8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 11 Sep 2004 03:00:11 +0000 Subject: [PATCH] Added a deleteTextureObject after the creation of the compressed textures --- src/osgTerrain/DataSet.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/osgTerrain/DataSet.cpp b/src/osgTerrain/DataSet.cpp index 908079236..924f4ba1b 100644 --- a/src/osgTerrain/DataSet.cpp +++ b/src/osgTerrain/DataSet.cpp @@ -1994,6 +1994,9 @@ osg::StateSet* DataSet::DestinationTile::createStateSet() texture->setInternalFormatMode(osg::Texture::USE_IMAGE_DATA_FORMAT); + + texture->dirtyTextureObject(); + osg::notify(osg::INFO)<<">>>>>>>>>>>>>>>compressed image.<<<<<<<<<<<<<<"<getMipMappingMode()==DataSet::MIP_MAPPING_IMAGERY) { - osg::notify(osg::NOTICE)<<"Non compressress mipmapped not yet supported yet"<second); _equalizeRow(prev_itr->second); - _writeRow(prev_itr->second); + if (writeToDisk) _writeRow(prev_itr->second); prev_itr = curr_itr; }