Crash fix

coverity_scan
scrawl 9 years ago
parent 8592166eeb
commit 8b981ab507

@ -200,7 +200,8 @@ namespace Resource
for(unsigned int unit=0;unit<texAttributes.size();++unit)
{
osg::StateAttribute *texture = stateset->getTextureAttribute(unit, osg::StateAttribute::TEXTURE);
apply(texture);
if (texture)
apply(texture);
}
}

Loading…
Cancel
Save