glamor_pixmap: Should bind unpack buffer to 0 after the uploading.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
Zhigang Gong 2012-02-10 15:34:43 +08:00 committed by Eric Anholt
parent e03ad27dfb
commit 0a8fb8563f

View File

@ -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);
}