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:
Zhigang Gong 2012-02-07 09:40:54 +08:00 committed by Chris Wilson
parent 1467a4ba1a
commit bf3518ea91
1 changed files with 1 additions and 1 deletions

View File

@ -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,