forked from teamnwah/openmw-tes3coop
Use ref_ptr
This commit is contained in:
parent
0fbc0d0da7
commit
33d27a2285
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ UVController::UVController(const UVController& copy, const osg::CopyOp& copyop)
|
|||
|
||||
void UVController::setDefaults(osg::StateSet *stateset)
|
||||
{
|
||||
osg::TexMat* texMat = new osg::TexMat;
|
||||
osg::ref_ptr<osg::TexMat> texMat (new osg::TexMat);
|
||||
for (std::set<int>::const_iterator it = mTextureUnits.begin(); it != mTextureUnits.end(); ++it)
|
||||
stateset->setTextureAttributeAndModes(*it, texMat, osg::StateAttribute::ON);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue