[PATCH 1/5] glamor: Force GL_REPEAT mode for source tiles and pictures
Keith Packard
keithp at keithp.com
Tue May 26 13:47:51 PDT 2015
This ensures that wrap mode changes elsewhere in glamor don't affect
tiles and repeating source pictures.
Signed-off-by: Keith Packard <keithp at 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
More information about the xorg-devel
mailing list