mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-29 09:45:34 +00:00
Optimise out redundant call
We already had the results
This commit is contained in:
parent
7e045cff75
commit
a36ed5f129
1 changed files with 2 additions and 2 deletions
|
@ -27,9 +27,9 @@ namespace
|
||||||
osg::StateSet::ModeList::const_iterator mf = l.find(mode);
|
osg::StateSet::ModeList::const_iterator mf = l.find(mode);
|
||||||
if (mf == l.end())
|
if (mf == l.end())
|
||||||
return;
|
return;
|
||||||
int flags = mf->second;
|
unsigned int flags = mf->second;
|
||||||
bool newValue = flags & osg::StateAttribute::ON;
|
bool newValue = flags & osg::StateAttribute::ON;
|
||||||
accumulateState(currentValue, newValue, isOverride, ss->getMode(mode));
|
accumulateState(currentValue, newValue, isOverride, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool materialNeedShadows(osg::Material* m)
|
inline bool materialNeedShadows(osg::Material* m)
|
||||||
|
|
Loading…
Reference in a new issue