From Farshid Lashkari, "The Collada loader would crash while processing textures on certain files. I've attached the fix."

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14595 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2014-12-10 11:29:54 +00:00
parent 3c07921dee
commit 487c2b5f67

View File

@ -1048,7 +1048,7 @@ osg::Texture2D* daeReader::processTexture(
return NULL;
}
if (sampler->getSource() == NULL )
if (sampler->getSource() == NULL || sampler->getSource()->getValue() == NULL)
{
OSG_WARN << "Could not locate source for sampler2D" << std::endl;
return NULL;