Skip to contentSkip to conversation

uxa/glamor/dri: Fix a typo bug when fixup glamor pixmap.

PATCH In review [email protected] 2 participants 2 messages Feb 7, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uxa/glamor/dri: Fix a typo bug when fixup glamor pixmap.

From: Zhigang Gong <[email protected]>

Should modify the old pixmap's header not the new one which was already destroyed.

---
 src/intel_dri.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
src/intel_dri.c +1 -1
index 0c6d45c..8bc6157 100644
@@ -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,
Signature · 1 line
1.7.4.4
#1 lore raw
Quoted 4 lines · On Tue, 7 Feb 2012 09:40:54 +0800, [email protected] wrote:

From: Zhigang Gong <[email protected]>

Should modify the old pixmap's header not the new one which was already destroyed.

Pushed, thanks.
-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre