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; }