mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
Fix crash in the stateset updater (regression #5478)
This commit is contained in:
parent
c53516a4b7
commit
ef6fe8d52a
@ -22,7 +22,7 @@ namespace SceneUtil
|
||||
}
|
||||
}
|
||||
|
||||
osg::StateSet* stateset = mStateSets[nv->getTraversalNumber()%2];
|
||||
osg::ref_ptr<osg::StateSet> stateset = mStateSets[nv->getTraversalNumber()%2];
|
||||
apply(stateset, nv);
|
||||
|
||||
if (!isCullVisitor)
|
||||
|
Loading…
Reference in New Issue
Block a user