From bb97900fe1a85b1362297bf613c2184e051e4229 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 30 Oct 2003 00:10:54 +0000 Subject: [PATCH] Changed the wrap mode from CLAMP to CLAMP_TO_EDGE to avoid artifacts under OSX. --- examples/osgbluemarble/osgbluemarble.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/osgbluemarble/osgbluemarble.cpp b/examples/osgbluemarble/osgbluemarble.cpp index 44ded5fcd..58b71c11a 100644 --- a/examples/osgbluemarble/osgbluemarble.cpp +++ b/examples/osgbluemarble/osgbluemarble.cpp @@ -81,8 +81,8 @@ osg::Node* createTile(const std::string& filename, bool leftHemisphere, double x osg::Texture2D* texture = new osg::Texture2D; texture->setImage(image); - texture->setWrap(osg::Texture::WRAP_S,osg::Texture::CLAMP); - texture->setWrap(osg::Texture::WRAP_T,osg::Texture::CLAMP); + texture->setWrap(osg::Texture::WRAP_S,osg::Texture::CLAMP_TO_EDGE); + texture->setWrap(osg::Texture::WRAP_T,osg::Texture::CLAMP_TO_EDGE); texture->setFilter(osg::Texture::MIN_FILTER,osg::Texture::LINEAR); texture->setFilter(osg::Texture::MAG_FILTER,osg::Texture::LINEAR); texture->setMaxAnisotropy(8);