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);
|
BaseCompressor* compressor = Registry::instance()->getObjectWrapperManager()->findCompressor(compressorName);
|
||||||
if ( !compressor )
|
if ( !compressor )
|
||||||
{
|
{
|
||||||
OSG_WARN << "InputStream::decompress(): No such compressor "
|
throwException( "InputStream: Failed to decompress stream, No such compressor." );
|
||||||
<< compressorName << std::endl;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !compressor->decompress(*(_in->getStream()), data) )
|
if ( !compressor->decompress(*(_in->getStream()), data) )
|
||||||
|
Loading…
Reference in New Issue
Block a user