summaryrefslogtreecommitdiff
path: root/src/radeon_glamor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon_glamor.c')
-rw-r--r--src/radeon_glamor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c
index 7a6bf534..b66848fc 100644
--- a/src/radeon_glamor.c
+++ b/src/radeon_glamor.c
@@ -314,10 +314,9 @@ radeon_glamor_set_pixmap_bo(DrawablePtr drawable, PixmapPtr pixmap)
FreeScratchGC(gc);
}
- radeon_set_pixmap_private(pixmap, NULL);
-
/* And redirect the pixmap to the new bo (for 3D). */
glamor_egl_exchange_buffers(old, pixmap);
+ radeon_set_pixmap_private(pixmap, radeon_get_pixmap_private(old));
radeon_set_pixmap_private(old, priv);
screen->ModifyPixmapHeader(old,