1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-01 01:39:41 +00:00

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

This commit is contained in:
Bret Curtis 2023-06-14 22:38:34 +02:00
parent 73c5909387
commit 30da8a27ba

View file

@ -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);
}
}
};