1
0
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:
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);
if (!isCullVisitor)