diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2012-02-07 09:40:54 +0800 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-07 08:43:08 +0000 |
commit | bf3518ea910a2a3c5b4500dcba7c829576fbfd47 (patch) | |
tree | ebfe7da924fbd276031a0bfd581aa380e97efbcf /src/intel_dri.c | |
parent | 1467a4ba1a327877026cc76b3eabeb51d1415509 (diff) |
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>
Diffstat (limited to 'src/intel_dri.c')
-rw-r--r-- | src/intel_dri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel_dri.c b/src/intel_dri.c index 0c6d45ce..8bc61577 100644 --- a/src/intel_dri.c +++ b/src/intel_dri.c @@ -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, |