diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-04-22 18:43:02 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-04-22 18:43:02 +0900 |
commit | 1af044d7eee211fd4b248c236280274a68334da5 (patch) | |
tree | 24c31b130901182c04be53654438be69b82c62a8 /src/radeon_dri2.c | |
parent | 43159ef400c3b18b9f4d3e6fa1c4aef2d60d38fe (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.c | 1 |
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); |