]> git.mxchange.org Git - simgear.git/commitdiff
CanvaImage: Enable texture repeat for images
authorThomas Geymayer <tomgey@gmail.com>
Mon, 15 Apr 2013 19:09:41 +0000 (21:09 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 15 Apr 2013 19:09:41 +0000 (21:09 +0200)
simgear/canvas/elements/CanvasImage.cxx

index cbf0055df9c03ee6036f5a73f921b0bb441f3091..e9a683cbcb74193f624bbc1c81a2d9bf7531af36 100644 (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);