summaryrefslogtreecommitdiff
path: root/exa/exa.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-09-25 15:40:19 +1000
committerDave Airlie <airlied@redhat.com>2008-09-26 08:59:30 +1000
commit5bf3f0fd4e00f96cfebd14b58580c3c8733626fb (patch)
tree93e67e833687e8cb7296fede5d2a3b42a711ecfb /exa/exa.c
parent82f150d73cc9a7d8eaf7241a51b03af05bcec159 (diff)
exa: make sure pixmap devPrivate.ptr is NULL at create time
Diffstat (limited to 'exa/exa.c')
-rw-r--r--exa/exa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/exa/exa.c b/exa/exa.c
index 6e769a7bf..d24012645 100644
--- a/exa/exa.c
+++ b/exa/exa.c
@@ -325,6 +325,9 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth,
pExaPixmap->score = EXA_PIXMAP_SCORE_PINNED;
pExaPixmap->fb_ptr = NULL;
pExaPixmap->pDamage = NULL;
+ pExaPixmap->sys_ptr = pPixmap->devPrivate.ptr;
+ pPixmap->devPrivate.ptr = NULL;
+
} else {
pExaPixmap->driverPriv = NULL;
/* Scratch pixmaps may have w/h equal to zero, and may not be