uxa/glamor/dri: Fix a typo bug when fixup glamor pixmap.
Should modify the old pixmap's header not the new one which was already destroyed. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
1467a4ba1a
commit
bf3518ea91
|
|
@ -174,7 +174,7 @@ static PixmapPtr fixup_glamor(DrawablePtr drawable, PixmapPtr pixmap)
|
|||
xf86DrvMsg(scrn->scrnIndex, X_WARNING,
|
||||
"Failed to get DRI drawable for glamor pixmap.\n");
|
||||
|
||||
screen->ModifyPixmapHeader(pixmap,
|
||||
screen->ModifyPixmapHeader(old,
|
||||
drawable->width,
|
||||
drawable->height,
|
||||
0, 0,
|
||||
|
|
|
|||
Loading…
Reference in New Issue