From: Thomas Geymayer Date: Mon, 15 Apr 2013 19:09:41 +0000 (+0200) Subject: CanvaImage: Enable texture repeat for images X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=17369a20dea2c1e8f93aa3e5888cac9ce6da043a;p=simgear.git CanvaImage: Enable texture repeat for images --- diff --git a/simgear/canvas/elements/CanvasImage.cxx b/simgear/canvas/elements/CanvasImage.cxx index cbf0055d..e9a683cb 100644 --- a/simgear/canvas/elements/CanvasImage.cxx +++ b/simgear/canvas/elements/CanvasImage.cxx @@ -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);