From 17369a20dea2c1e8f93aa3e5888cac9ce6da043a Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Mon, 15 Apr 2013 21:09:41 +0200 Subject: [PATCH] CanvaImage: Enable texture repeat for images --- simgear/canvas/elements/CanvasImage.cxx | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5