summaryrefslogtreecommitdiff
path: root/src/radeon_dri2.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-04-22 18:43:02 +0900
committerMichel Dänzer <michel@daenzer.net>2015-04-22 18:43:02 +0900
commit1af044d7eee211fd4b248c236280274a68334da5 (patch)
tree24c31b130901182c04be53654438be69b82c62a8 /src/radeon_dri2.c
parent43159ef400c3b18b9f4d3e6fa1c4aef2d60d38fe (diff)
DRI2: Clear old->devPrivate.ptr in fixup_glamor
It doesn't point to the memory of the newly allocated BO. Fixes crash running piglit with Option "ShadowPrimary" enabled. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_dri2.c')
-rw-r--r--src/radeon_dri2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 31a1ce7e..6bb3dc6e 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -119,6 +119,7 @@ static PixmapPtr fixup_glamor(DrawablePtr drawable, PixmapPtr pixmap)
0, 0,
pixmap->devKind,
NULL);
+ old->devPrivate.ptr = NULL;
screen->DestroyPixmap(pixmap);