glamor: Use the pixmap stride in fallbacks instead of trying to guess it.
Mostly fixes gnome-terminal text.
This commit is contained in:
		
							parent
							
								
									45de3d24b4
								
							
						
					
					
						commit
						c3c3a63497
					
				|  | @ -293,7 +293,7 @@ glamor_prepare_access(DrawablePtr drawable, glamor_access_t access) | ||||||
| 	    return TRUE; | 	    return TRUE; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     stride = PixmapBytePad(pixmap->drawable.width, drawable->depth); |     stride = pixmap->devKind; | ||||||
|     read_stride = stride; |     read_stride = stride; | ||||||
| 
 | 
 | ||||||
|     data = xalloc(stride * pixmap->drawable.height); |     data = xalloc(stride * pixmap->drawable.height); | ||||||
|  | @ -476,7 +476,7 @@ glamor_finish_access(DrawablePtr drawable) | ||||||
| 	return; | 	return; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     stride = PixmapBytePad(pixmap->drawable.width, drawable->depth); |     stride = pixmap->devKind; | ||||||
| 
 | 
 | ||||||
|     glVertexPointer(2, GL_FLOAT, sizeof(float) * 2, vertices); |     glVertexPointer(2, GL_FLOAT, sizeof(float) * 2, vertices); | ||||||
|     glEnableClientState(GL_VERTEX_ARRAY); |     glEnableClientState(GL_VERTEX_ARRAY); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue