Restructed the handling of a null compressor

This commit is contained in:
Robert Osfield 2016-06-23 09:05:51 +01:00
parent 1e4ea646ce
commit 818843a6b6

View File

@ -1033,8 +1033,8 @@ void InputStream::decompress()
BaseCompressor* compressor = Registry::instance()->getObjectWrapperManager()->findCompressor(compressorName);
if ( !compressor )
{
OSG_WARN << "InputStream::decompress(): No such compressor "
<< compressorName << std::endl;
throwException( "InputStream: Failed to decompress stream, No such compressor." );
return;
}
if ( !compressor->decompress(*(_in->getStream()), data) )