forked from mirror/openmw-tes3mp
Disable unRefImageDataAfterApply
This commit is contained in:
parent
236d628884
commit
ac2612926e
1 changed files with 2 additions and 1 deletions
|
@ -1407,7 +1407,8 @@ namespace NifOsg
|
||||||
osgDB::ReaderWriter::ReadResult result = reader->readImage(*mResourceManager->get(filename.c_str()), opts);
|
osgDB::ReaderWriter::ReadResult result = reader->readImage(*mResourceManager->get(filename.c_str()), opts);
|
||||||
osg::Image* image = result.getImage();
|
osg::Image* image = result.getImage();
|
||||||
osg::Texture2D* texture2d = new osg::Texture2D;
|
osg::Texture2D* texture2d = new osg::Texture2D;
|
||||||
texture2d->setUnRefImageDataAfterApply(true);
|
// Can be enabled for single-context, i.e. in openmw
|
||||||
|
//texture2d->setUnRefImageDataAfterApply(true);
|
||||||
texture2d->setImage(image);
|
texture2d->setImage(image);
|
||||||
|
|
||||||
unsigned int clamp = static_cast<unsigned int>(tex.clamp);
|
unsigned int clamp = static_cast<unsigned int>(tex.clamp);
|
||||||
|
|
Loading…
Reference in a new issue