Added support for writing base layer 0 texture into texture layer 1 and above

to use as a background.
This commit is contained in:
Robert Osfield
2005-03-09 22:01:15 +00:00
parent 929601f070
commit 2d9a4d5fa7

View File

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