diff --git a/src/drmmode_display.c b/src/drmmode_display.c index d5904ad..e9296dc 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -382,8 +382,10 @@ drmmode_crtc_shadow_destroy(xf86CrtcPtr crtc, PixmapPtr rotate_pixmap, void *dat drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private; drmmode_ptr drmmode = drmmode_crtc->drmmode; - if (rotate_pixmap) + if (rotate_pixmap) { + i830_set_pixmap_bo(rotate_pixmap, NULL); FreeScratchPixmapHeader(rotate_pixmap); + } if (data) { diff --git a/src/i830_display.c b/src/i830_display.c index a7eafb9..9e55aa0 100644 --- a/src/i830_display.c +++ b/src/i830_display.c @@ -1965,8 +1965,10 @@ i830_crtc_shadow_destroy(xf86CrtcPtr crtc, PixmapPtr rotate_pixmap, void *data) ScrnInfoPtr pScrn = crtc->scrn; I830CrtcPrivatePtr intel_crtc = crtc->driver_private; - if (rotate_pixmap) + if (rotate_pixmap) { + i830_set_pixmap_bo(rotate_pixmap, NULL); FreeScratchPixmapHeader(rotate_pixmap); + } if (data) { /* Be sure to sync acceleration before the memory gets unbound. */