diff --git a/src/osgTerrain/DataSet.cpp b/src/osgTerrain/DataSet.cpp index 15105496f..a21bbe4f4 100644 --- a/src/osgTerrain/DataSet.cpp +++ b/src/osgTerrain/DataSet.cpp @@ -474,8 +474,9 @@ void DataSet::SourceData::readImage(DestinationData& destination) float destWindowWidthRatio = (float)destWidth/(float)windowWidth; float destWindowHeightRatio = (float)destHeight/(float)windowHeight; const float resizeTolerance = 1.1; - if (destWindowWidthRatio>resizeTolerance || - destWindowHeightRatio>resizeTolerance) + + bool interpolateSourceImagery = true; + if (interpolateSourceImagery && (destWindowWidthRatio>resizeTolerance || destWindowHeightRatio>resizeTolerance)) { readWidth = windowWidth; readHeight = windowHeight;