exa: make sure pixmap devPrivate.ptr is NULL at create time
This commit is contained in:
parent
82f150d73c
commit
5bf3f0fd4e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue