mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 04:40:26 +00:00
Wrap a Texture2D in a ref_ptr
This commit is contained in:
parent
31c3324705
commit
0731595c2b
1 changed files with 1 additions and 1 deletions
|
@ -1364,7 +1364,7 @@ namespace NifOsg
|
||||||
int wrapT = (clamp) & 0x1;
|
int wrapT = (clamp) & 0x1;
|
||||||
int wrapS = (clamp >> 1) & 0x1;
|
int wrapS = (clamp >> 1) & 0x1;
|
||||||
|
|
||||||
osg::Texture2D* texture2d = textureManager->getTexture2D(filename,
|
osg::ref_ptr<osg::Texture2D> texture2d = textureManager->getTexture2D(filename,
|
||||||
wrapS ? osg::Texture::REPEAT : osg::Texture::CLAMP,
|
wrapS ? osg::Texture::REPEAT : osg::Texture::CLAMP,
|
||||||
wrapT ? osg::Texture::REPEAT : osg::Texture::CLAMP);
|
wrapT ? osg::Texture::REPEAT : osg::Texture::CLAMP);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue