Forced the use of non mip mapped texture during subloading in the osgprerender

demo.
This commit is contained in:
Robert Osfield
2002-07-29 21:29:41 +00:00
parent 0fa1b4a2ff
commit fae159df08

View File

@@ -350,6 +350,8 @@ osg::Node* createPreRenderSubGraph(osg::Node* subgraph)
osg::Texture* texture = new osg::Texture;
texture->setSubloadMode(osg::Texture::IF_DIRTY);
texture->setImage(image);
texture->setFilter(osg::Texture::MIN_FILTER,osg::Texture::LINEAR);
texture->setFilter(osg::Texture::MAG_FILTER,osg::Texture::LINEAR);
stateset->setTextureAttributeAndModes(0, texture,osg::StateAttribute::ON);
// {