diff options
author | Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com> | 2015-12-09 21:39:32 +0000 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2015-12-11 15:29:01 +0100 |
commit | b4383be80b0f24ebee670eec558d0963404d40d4 (patch) | |
tree | b81eae1016037864d55db02a3d1fc66809e4cb10 /slideshow | |
parent | facfbeb5cbff191da956827bc37df7bc74ed0b81 (diff) |
slideshow: Use GL_CLAMP_TO_BORDER for texture wrap
No transition makes use of repeat, and it could lead to some artifacts
when writing transitions.
Change-Id: Icf6f4f0eb74c28d8c75991e717b6b4ffe9df5060
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx index 387e96e585fd..6aa726b8d0c1 100644 --- a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx +++ b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx @@ -574,8 +574,8 @@ void OGLTransitionerImpl::createTexture( GLuint* texID, glDeleteTextures( 1, texID ); glGenTextures( 1, texID ); glBindTexture( GL_TEXTURE_2D, *texID ); - glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT ); - glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT ); + glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER ); + glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER ); CHECK_GL_ERROR(); #if defined( GLX_EXT_texture_from_pixmap ) |