summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-06-16 12:57:11 -0400
committerAlex Deucher <alexdeucher@gmail.com>2011-06-16 12:57:11 -0400
commit122bedcbcf45cb583cf51b2fd04ed2805e0ca60b (patch)
tree62a9597cdee651e9444daf43153ed9f7f4b3ce70
parenta6154c00c64932332e8f6e334661ffd579cfd894 (diff)
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
-rw-r--r--src/radeon_dri2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 9bb5f397..512c4476 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -179,7 +179,7 @@ radeon_dri2_create_buffers(DrawablePtr drawable,
aligned_height = RADEON_ALIGN(size / pitch_bytes, height_align);
pixmap = (*pScreen->CreatePixmap)(pScreen,
- drawable->width,
+ aligned_width,
aligned_height,
drawable->depth,
flags);
@@ -332,7 +332,7 @@ radeon_dri2_create_buffer(DrawablePtr drawable,
aligned_height = RADEON_ALIGN(size / pitch_bytes, height_align);
pixmap = (*pScreen->CreatePixmap)(pScreen,
- drawable->width,
+ aligned_width,
aligned_height,
(format != 0)?format:drawable->depth,
flags);