DDS TextureCache: remove unused code to support non-persistent images

- this didn't compile for Stuart on OSG3.2 and it's not used.
This commit is contained in:
Richard Harrison
2018-11-25 23:48:58 +01:00
parent 9d99f4ce30
commit 86d739cc85

View File

@@ -221,7 +221,6 @@ ModelRegistry::readImage(const string& fileName,
init = true;
}
bool persist = true;
bool cache_active = SGSceneFeatures::instance()->getTextureCacheActive();
bool compress_solid = SGSceneFeatures::instance()->getTextureCacheCompressionActive();
bool compress_transparent = SGSceneFeatures::instance()->getTextureCacheCompressionActiveTransparent();
@@ -339,14 +338,7 @@ ModelRegistry::readImage(const string& fileName,
srcImage = simgear::effect::computeMipmap(srcImage, mipmapFunctions);
}
}
if (persist) {
registry->writeImage(*srcImage, newName, nopt);
//printf(" ->> written to %s\n", newName.c_str());
}
else {
return srcImage;
}
registry->writeImage(*srcImage, newName, nopt);
absFileName = newName;
}
}