mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-08 16:08:31 +02:00
exa: make sure pixmap devPrivate.ptr is NULL at create time
This commit is contained in:
parent
82f150d73c
commit
5bf3f0fd4e
1 changed files with 3 additions and 0 deletions
|
|
@ -325,6 +325,9 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth,
|
||||||
pExaPixmap->score = EXA_PIXMAP_SCORE_PINNED;
|
pExaPixmap->score = EXA_PIXMAP_SCORE_PINNED;
|
||||||
pExaPixmap->fb_ptr = NULL;
|
pExaPixmap->fb_ptr = NULL;
|
||||||
pExaPixmap->pDamage = NULL;
|
pExaPixmap->pDamage = NULL;
|
||||||
|
pExaPixmap->sys_ptr = pPixmap->devPrivate.ptr;
|
||||||
|
pPixmap->devPrivate.ptr = NULL;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
pExaPixmap->driverPriv = NULL;
|
pExaPixmap->driverPriv = NULL;
|
||||||
/* Scratch pixmaps may have w/h equal to zero, and may not be
|
/* Scratch pixmaps may have w/h equal to zero, and may not be
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue