From 3edf690d391b290066a3f39eb24695b8c8a0aaab Mon Sep 17 00:00:00 2001 From: Qiang Yu Date: Wed, 14 Sep 2016 17:19:29 +0900 Subject: [PATCH] DRI2: Fix amdgpu_dri2_exchange_buffers width/height copy'n'paste error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Qiang Yu Reviewed-by: Alex Deucher Reviewed-by: Michel Dänzer (Cherry picked from commit 73c8dc000ad6b2b53ba3aa7155f5e8f6b55623b7) --- src/amdgpu_dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c index 4a39ef8..74d969b 100644 --- a/src/amdgpu_dri2.c +++ b/src/amdgpu_dri2.c @@ -657,7 +657,7 @@ amdgpu_dri2_exchange_buffers(DrawablePtr draw, DRI2BufferPtr front, region.extents.x1 = region.extents.y1 = 0; region.extents.x2 = front_priv->pixmap->drawable.width; - region.extents.y2 = front_priv->pixmap->drawable.width; + region.extents.y2 = front_priv->pixmap->drawable.height; region.data = NULL; DamageRegionAppend(&front_priv->pixmap->drawable, ®ion);