From Brad Christiansen, "Attached is a fix which implements the lazy loading of optional layers (if requested) in the new osgb/osgt formats."

This commit is contained in:
Robert Osfield
2011-01-14 11:00:11 +00:00
parent 7c30f204e8
commit b0dd272186
3 changed files with 45 additions and 5 deletions

View File

@@ -476,8 +476,9 @@ osg::PrimitiveSet* InputStream::readPrimitiveSet()
return primitive.release();
}
osg::Image* InputStream::readImage()
osg::Image* InputStream::readImage(bool readFromExternal)
{
std::string className="osg::Image";
unsigned int id = 0;
@@ -497,7 +498,7 @@ osg::Image* InputStream::readImage()
if ( getException() ) return NULL;
osg::ref_ptr<osg::Image> image = NULL;
bool readFromExternal = true;
switch ( decision )
{
case IMAGE_INLINE_DATA: