This ensures that wrap mode changes elsewhere in glamor don't affect
tiles and repeating source pictures.

Signed-off-by: Keith Packard <kei...@keithp.com>
---
 glamor/glamor_transform.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/glamor/glamor_transform.c b/glamor/glamor_transform.c
index f476a99..cc97ea5 100644
--- a/glamor/glamor_transform.c
+++ b/glamor/glamor_transform.c
@@ -169,6 +169,8 @@ glamor_set_texture_pixmap(PixmapPtr texture)
 
     glActiveTexture(GL_TEXTURE0);
     glBindTexture(GL_TEXTURE_2D, texture_priv->fbo->tex);
+    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
+    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
 
     /* we're not setting the sampler uniform here as we always use
      * GL_TEXTURE0, and the default value for uniforms is zero. So,
-- 
2.1.4

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to