diff options
author | Bret Curtis <psi29a@gmail.com> | 2023-06-14 22:44:19 +0200 |
---|---|---|
committer | Bret Curtis <psi29a@gmail.com> | 2023-06-16 09:16:07 +0200 |
commit | d582a26e4c58c014425abee3c5f06128b5695987 (patch) | |
tree | 65a6ef267a2e44ae4cabf4b55c7c58635c08b45f | |
parent | 30da8a27ba839e9a72ac0bf3c69a1db8a76f0a9f (diff) |
Set the default to CLAMP_TO_EDGE in case it was not explicity called forGLCLAMP_GOT_CLAMPED
-rw-r--r-- | components/fx/technique.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/fx/technique.cpp b/components/fx/technique.cpp index 787f43a4f6..fd1556674f 100644 --- a/components/fx/technique.cpp +++ b/components/fx/technique.cpp @@ -277,6 +277,8 @@ namespace fx rt.mTarget->setSourceFormat(GL_RGB); rt.mTarget->setInternalFormat(GL_RGB); rt.mTarget->setSourceType(GL_UNSIGNED_BYTE); + rt.mTarget->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE); + rt.mTarget->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_EDGE); while (!isNext<Lexer::Close_bracket>() && !isNext<Lexer::Eof>()) { |