diff --git a/src/osgShadow/ShadowMap.cpp b/src/osgShadow/ShadowMap.cpp index d2b2addc3..b9f113fd5 100644 --- a/src/osgShadow/ShadowMap.cpp +++ b/src/osgShadow/ShadowMap.cpp @@ -294,8 +294,8 @@ void ShadowMap::init() *dataPtr = color; // make fake texture osg::Texture2D* fakeTex = new osg::Texture2D; - fakeTex->setWrap(osg::Texture2D::WRAP_S,osg::Texture2D::CLAMP_TO_BORDER); - fakeTex->setWrap(osg::Texture2D::WRAP_T,osg::Texture2D::CLAMP_TO_BORDER); + fakeTex->setWrap(osg::Texture2D::WRAP_S,osg::Texture2D::CLAMP_TO_EDGE); + fakeTex->setWrap(osg::Texture2D::WRAP_T,osg::Texture2D::CLAMP_TO_EDGE); fakeTex->setFilter(osg::Texture2D::MIN_FILTER,osg::Texture2D::LINEAR); fakeTex->setFilter(osg::Texture2D::MAG_FILTER,osg::Texture2D::LINEAR); fakeTex->setImage(image);