glamor: Use the pixmap stride in fallbacks instead of trying to guess it.

Mostly fixes gnome-terminal text.
This commit is contained in:
Eric Anholt 2010-02-08 15:34:45 +01:00 committed by Zhigang Gong
parent 45de3d24b4
commit c3c3a63497

View File

@ -293,7 +293,7 @@ glamor_prepare_access(DrawablePtr drawable, glamor_access_t access)
return TRUE;
}
stride = PixmapBytePad(pixmap->drawable.width, drawable->depth);
stride = pixmap->devKind;
read_stride = stride;
data = xalloc(stride * pixmap->drawable.height);
@ -476,7 +476,7 @@ glamor_finish_access(DrawablePtr drawable)
return;
}
stride = PixmapBytePad(pixmap->drawable.width, drawable->depth);
stride = pixmap->devKind;
glVertexPointer(2, GL_FLOAT, sizeof(float) * 2, vertices);
glEnableClientState(GL_VERTEX_ARRAY);