Kaydet (Commit) 0ab9db17 authored tarafından Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot Kaydeden (comit) Tomaž Vajngerl

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
(cherry picked from commit b4383be8)
üst fe9bcdc5
...@@ -574,8 +574,8 @@ void OGLTransitionerImpl::createTexture( GLuint* texID, ...@@ -574,8 +574,8 @@ void OGLTransitionerImpl::createTexture( GLuint* texID,
glDeleteTextures( 1, texID ); glDeleteTextures( 1, texID );
glGenTextures( 1, texID ); glGenTextures( 1, texID );
glBindTexture( GL_TEXTURE_2D, *texID ); glBindTexture( GL_TEXTURE_2D, *texID );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER );
CHECK_GL_ERROR(); CHECK_GL_ERROR();
#if defined( GLX_EXT_texture_from_pixmap ) #if defined( GLX_EXT_texture_from_pixmap )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment