diff options
Diffstat (limited to 'src/amdgpu_dri2.c')
-rw-r--r-- | src/amdgpu_dri2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c index bdb0d37..bde36de 100644 --- a/src/amdgpu_dri2.c +++ b/src/amdgpu_dri2.c @@ -109,15 +109,16 @@ static PixmapPtr fixup_glamor(DrawablePtr drawable, PixmapPtr pixmap) /* And redirect the pixmap to the new bo (for 3D). */ glamor_egl_exchange_buffers(old, pixmap); amdgpu_set_pixmap_private(old, priv); - screen->DestroyPixmap(pixmap); old->refcnt++; screen->ModifyPixmapHeader(old, old->drawable.width, old->drawable.height, - 0, 0, priv->stride, NULL); + 0, 0, pixmap->devKind, NULL); old->devPrivate.ptr = NULL; + screen->DestroyPixmap(pixmap); + return old; } |