CanvaImage: Enable texture repeat for images

This commit is contained in:
Thomas Geymayer 2013-04-15 21:09:41 +02:00
parent c83dae4c70
commit 17369a20de

View File

@ -355,6 +355,8 @@ namespace canvas
setSrcCanvas( CanvasPtr() );
_texture->setImage(img);
_texture->setWrap(osg::Texture::WRAP_S, osg::Texture::REPEAT);
_texture->setWrap(osg::Texture::WRAP_T, osg::Texture::REPEAT);
_geom->getOrCreateStateSet()
->setTextureAttributeAndModes(0, _texture);