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:
parent
3c07921dee
commit
487c2b5f67
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user