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."

revert-6246b479
Bret Curtis 2 years ago
parent 73c5909387
commit 30da8a27ba

@ -62,11 +62,7 @@ namespace fx
if (other.mRenderTarget) if (other.mRenderTarget)
mRenderTarget = new osg::FrameBufferObject(*other.mRenderTarget, copyOp); mRenderTarget = new osg::FrameBufferObject(*other.mRenderTarget, copyOp);
if (other.mRenderTexture) if (other.mRenderTexture)
{
mRenderTexture = new osg::Texture2D(*other.mRenderTexture, copyOp); 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);
}
} }
}; };

Loading…
Cancel
Save