1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-03 21:39:41 +00:00

Fix crash in the stateset updater (regression #5478)

This commit is contained in:
Andrei Kortunov 2020-06-30 08:59:21 +04:00
parent c53516a4b7
commit ef6fe8d52a

View file

@ -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); apply(stateset, nv);
if (!isCullVisitor) if (!isCullVisitor)