Unverified Commit 829c26e9 authored by Andrei Kortunov's avatar Andrei Kortunov Committed by GitHub

Merge pull request #2942 from akortunov/master

Fix crash in the stateset updater
parents c53516a4 ef6fe8d5
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment