From Marc Helbling, "here is a trivial fix in the Inventor plugin. In one code path, the pointer validity is checked after dereferencing a pointer that can be null (image->valid()) instead of calling ref_ptr::valid (image.valid())."
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14505 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -1268,7 +1268,7 @@ SbBool SoVRMLImageTextureOsg::readInstance(SoInput *in, unsigned short flags)
|
||||
if (url.getNum() && url[0].getLength())
|
||||
{
|
||||
osg::ref_ptr<osg::Image> image = loadImage(url[0].getString(), options);
|
||||
if (!image->valid())
|
||||
if (!image.valid())
|
||||
{
|
||||
OSG_WARN << "Could not read texture file: " << url[0].getString() << std::endl;
|
||||
this->setReadStatus(FALSE);
|
||||
|
||||
Reference in New Issue
Block a user