From 30da8a27ba839e9a72ac0bf3c69a1db8a76f0a9f Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Wed, 14 Jun 2023 22:38:34 +0200 Subject: [PATCH] small revert, "It is copying a texture, it is not a default initialized one. The source texture may or may not want GL_CLAMP_TO_EDGE." --- components/fx/technique.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/fx/technique.hpp b/components/fx/technique.hpp index 3373193fdd..844e4b552a 100644 --- a/components/fx/technique.hpp +++ b/components/fx/technique.hpp @@ -62,11 +62,7 @@ namespace fx if (other.mRenderTarget) mRenderTarget = new osg::FrameBufferObject(*other.mRenderTarget, copyOp); if (other.mRenderTexture) - { mRenderTexture = new osg::Texture2D(*other.mRenderTexture, copyOp); - mRenderTexture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE); - mRenderTexture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_EDGE); - } } };