Changeset 14

Show
Ignore:
Timestamp:
04/25/08 14:10:07
Author:
robert
Message:

Changed background so that is uses non power of two textures where supported.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/SlideShowConstructor.cpp

    r13 r14  
    291291                        new osg::PolygonOffset(1.0f,2.0f), 
    292292                        osg::StateAttribute::ON); 
     293                         
     294            osg::Texture2D* texture = new osg::Texture2D(osgDB::readImageFile(_slideBackgroundImageFileName)); 
     295            texture->setResizeNonPowerOfTwoHint(false); 
    293296 
    294297            backgroundStateSet->setTextureAttributeAndModes(0, 
    295                         new osg::Texture2D(osgDB::readImageFile(_slideBackgroundImageFileName))
     298                        texture
    296299                        osg::StateAttribute::ON); 
    297300