[Glamor] [PATCH] glamor_pixmap: Should bind unpack buffer to 0 after the uploading.
zhigang.gong at linux.intel.com
zhigang.gong at linux.intel.com
Fri Feb 10 00:48:37 PST 2012
From: Zhigang Gong <zhigang.gong at linux.intel.com>
Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
---
src/glamor_pixmap.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/glamor_pixmap.c b/src/glamor_pixmap.c
index 6563e94..1a63ffd 100644
--- a/src/glamor_pixmap.c
+++ b/src/glamor_pixmap.c
@@ -268,6 +268,9 @@ __glamor_upload_pixmap_to_texture(PixmapPtr pixmap, GLenum format,
pixmap->drawable.width,
pixmap->drawable.height, 0, format, type,
texels);
+
+ if (pixmap_priv->fbo->pbo && pixmap_priv->fbo->pbo_valid)
+ dispatch->glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
}
--
1.7.4.4
More information about the Glamor
mailing list