mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-10 18:30:40 +02:00
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:
parent
e03ad27dfb
commit
0a8fb8563f
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue