mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-24 23:41:33 +00:00
Crash fix
This commit is contained in:
parent
8592166eeb
commit
8b981ab507
1 changed files with 2 additions and 1 deletions
|
@ -200,7 +200,8 @@ namespace Resource
|
||||||
for(unsigned int unit=0;unit<texAttributes.size();++unit)
|
for(unsigned int unit=0;unit<texAttributes.size();++unit)
|
||||||
{
|
{
|
||||||
osg::StateAttribute *texture = stateset->getTextureAttribute(unit, osg::StateAttribute::TEXTURE);
|
osg::StateAttribute *texture = stateset->getTextureAttribute(unit, osg::StateAttribute::TEXTURE);
|
||||||
apply(texture);
|
if (texture)
|
||||||
|
apply(texture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue