mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Crash fix
This commit is contained in:
parent
8592166eeb
commit
8b981ab507
@ -200,6 +200,7 @@ 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);
|
||||||
|
if (texture)
|
||||||
apply(texture);
|
apply(texture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user