mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Use osg::clone
This commit is contained in:
parent
33d27a2285
commit
c65492193c
@ -22,7 +22,7 @@ void overrideTexture(const std::string &texture, Resource::ResourceSystem *resou
|
||||
|
||||
osg::ref_ptr<osg::StateSet> stateset;
|
||||
if (node->getStateSet())
|
||||
stateset = static_cast<osg::StateSet*>(node->getStateSet()->clone(osg::CopyOp::SHALLOW_COPY));
|
||||
stateset = osg::clone(node->getStateSet(), osg::CopyOp::SHALLOW_COPY);
|
||||
else
|
||||
stateset = new osg::StateSet;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user