From 56d6e7a85fbe8e50c38efda0f59f09aac52b769a Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Mon, 11 Jun 2012 02:24:41 +0800 Subject: [PATCH] glamor_putimage: Correct the wrong stride value. We should not use the destination pixmap's devkind as the input image data's stride. Signed-off-by: Zhigang Gong --- glamor/glamor_putimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glamor/glamor_putimage.c b/glamor/glamor_putimage.c index 6d62bd7bc..34e86a147 100644 --- a/glamor/glamor_putimage.c +++ b/glamor/glamor_putimage.c @@ -307,7 +307,7 @@ _glamor_put_image(DrawablePtr drawable, GCPtr gc, int depth, int x, int y, glamor_destroy_pixmap(temp_pixmap); } else glamor_upload_sub_pixmap_to_texture(pixmap, x + drawable->x + x_off, y + drawable->y + y_off, - w, h, pixmap->devKind, bits, 0); + w, h, PixmapBytePad(w, depth), bits, 0); ret = TRUE; goto done;