summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Glisse <glisse@freedesktop.org>2009-05-11 22:52:46 +0200
committerIan Romanick <ian.d.romanick@intel.com>2009-06-11 22:46:00 -0700
commit540d5b87a4e24d85ec46620dfedd7bd7979180ea (patch)
tree5e6363412e508f78271fc7cc42c06f05ffe61d91
parentec9f1ae32474bc0507a3c66e63bdf2835d467a34 (diff)
DRI2: update DRI2 private drawable width & height according to X drawable
(cherry picked from commit f250eea2e90fc50bec5214c2f41132b95edc2c46)
-rw-r--r--hw/xfree86/dri2/dri2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c
index 1d49d7c65..385c5e8d4 100644
--- a/hw/xfree86/dri2/dri2.c
+++ b/hw/xfree86/dri2/dri2.c
@@ -257,6 +257,8 @@ do_get_buffers(DrawablePtr pDraw, int *width, int *height,
pPriv->buffers = buffers;
pPriv->bufferCount = *out_count;
+ pPriv->width = pDraw->width;
+ pPriv->height = pDraw->height;
*width = pPriv->width;
*height = pPriv->height;