Restructed the handling of a null compressor
This commit is contained in:
parent
1e4ea646ce
commit
818843a6b6
@ -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) )
|
||||
|
Loading…
Reference in New Issue
Block a user