From ae33e4a459375cccaf0beb5f29c05aec00843d2c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 16 Jan 2008 15:05:04 +0000 Subject: [PATCH] Changed the Texture clamp mode to CLAMP_TO_EDGE --- src/osgTerrain/GeometryTechnique.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osgTerrain/GeometryTechnique.cpp b/src/osgTerrain/GeometryTechnique.cpp index 0b34439b5..fc99b2e02 100644 --- a/src/osgTerrain/GeometryTechnique.cpp +++ b/src/osgTerrain/GeometryTechnique.cpp @@ -486,7 +486,9 @@ void GeometryTechnique::applyColorLayers() texture2D->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR_MIPMAP_LINEAR); texture2D->setFilter(osg::Texture::MAG_FILTER, filter==Terrain::LINEAR ? osg::Texture::LINEAR : osg::Texture::NEAREST); - + texture2D->setWrap(osg::Texture::WRAP_S,osg::Texture::CLAMP_TO_EDGE); + texture2D->setWrap(osg::Texture::WRAP_T,osg::Texture::CLAMP_TO_EDGE); + if (tf) { // up the precision of the internal texture format to its maximum.