From c761efb3717599a3c554b158ab0f520474b0247c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 31 Oct 2007 11:06:33 +0000 Subject: [PATCH] Fixed wrap mode for panoramic display. --- src/osgViewer/View.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/osgViewer/View.cpp b/src/osgViewer/View.cpp index ceaf848be..64aee3163 100644 --- a/src/osgViewer/View.cpp +++ b/src/osgViewer/View.cpp @@ -896,6 +896,9 @@ void View::setUpViewFor3DSphericalDisplay(double radius, double collar, unsigned texture->setInternalFormat(GL_RGB); texture->setFilter(osg::Texture::MIN_FILTER,osg::Texture::LINEAR); texture->setFilter(osg::Texture::MAG_FILTER,osg::Texture::LINEAR); + texture->setWrap(osg::Texture::WRAP_S,osg::Texture::CLAMP_TO_EDGE); + texture->setWrap(osg::Texture::WRAP_T,osg::Texture::CLAMP_TO_EDGE); + texture->setWrap(osg::Texture::WRAP_R,osg::Texture::CLAMP_TO_EDGE); #if 0 osg::Camera::RenderTargetImplementation renderTargetImplementation = osg::Camera::SEPERATE_WINDOW; @@ -1303,6 +1306,8 @@ void View::setUpViewForPanoramicSphericalDisplay(double radius, double collar, u texture->setInternalFormat(GL_RGB); texture->setFilter(osg::Texture::MIN_FILTER,osg::Texture::LINEAR); texture->setFilter(osg::Texture::MAG_FILTER,osg::Texture::LINEAR); + texture->setWrap(osg::Texture::WRAP_S,osg::Texture::CLAMP_TO_EDGE); + texture->setWrap(osg::Texture::WRAP_T,osg::Texture::CLAMP_TO_EDGE); #if 0 osg::Camera::RenderTargetImplementation renderTargetImplementation = osg::Camera::SEPERATE_WINDOW;