From 63a3595aab4448766d9f46b6fd8dc0796d903f78 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 19 Mar 2015 10:49:17 +0000 Subject: [PATCH] Added Texture wrap setting to CLAMP_TO_EDGE to fix rendering problem when running the default osgdistortion example git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14803 16af8721-9629-0410-8352-f15c8da7e697 --- examples/osgdistortion/osgdistortion.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/osgdistortion/osgdistortion.cpp b/examples/osgdistortion/osgdistortion.cpp index f6976c27d..6cba18fb7 100644 --- a/examples/osgdistortion/osgdistortion.cpp +++ b/examples/osgdistortion/osgdistortion.cpp @@ -109,6 +109,8 @@ osg::Node* createDistortionSubgraph(CommandLineOptions& options, osg::Node* subg texture->setInternalFormat(GL_RGBA); texture->setFilter(osg::Texture2D::MIN_FILTER,osg::Texture2D::LINEAR); texture->setFilter(osg::Texture2D::MAG_FILTER,osg::Texture2D::LINEAR); + texture->setWrap(osg::Texture2D::WRAP_S, osg::Texture2D::CLAMP_TO_EDGE); + texture->setWrap(osg::Texture2D::WRAP_T, osg::Texture2D::CLAMP_TO_EDGE); // set up the render to texture camera. {