Old-style texture compression: better check

Make even more sure new-style texture-compression is active, before
deciding which old-style mode to use.
This commit is contained in:
James Turner 2020-05-07 11:47:25 +01:00
parent 65925cccdf
commit 1d89a76d13

View File

@ -70,7 +70,7 @@ void
SGSceneFeatures::applyTextureCompression(osg::Texture* texture) const
{
// if the texture cache is active, always use the file data format
if (_TextureCacheCompressionActive) {
if (_TextureCacheActive && _TextureCacheCompressionActive) {
texture->setInternalFormatMode(osg::Texture::USE_IMAGE_DATA_FORMAT);
} else {
// keep the older texture compression working, some people need it