From: Pauli Nieminen <[email protected]>
Original patch has NULL pointer deference bug which I have fixed locally with
following patch.
---
hw/xfree86/dri2/dri2.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c
index 39e64db..db9722c 100644
--- a/hw/xfree86/dri2/dri2.c
+++ b/hw/xfree86/dri2/dri2.c
@@ -506,8 +506,8 @@ do_get_buffers(DRI2DrawablePtr pPriv, int *width, int
*height,
int i;
if (!pDraw) {
- *width = pDraw->width;
- *height = pDraw->height;
+ *width = pPriv->width;
+ *height = pPriv->height;
*out_count = 0;
return NULL;
}
--
1.7.0.4
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel