intel: Make intel_blit.c take pitches in bytes.
[mesa.git] / src / mesa / drivers / dri / intel / intel_pixel_bitmap.c
index 954dfc50b141b325443cd76944189699f3d2c3f0..6105b42945166b909d28f3167634482d100b8a9b 100644 (file)
@@ -274,7 +274,7 @@ do_blit_bitmap( struct gl_context *ctx,
                                                (GLubyte *)stipple,
                                                sz,
                                                color,
-                                               dst->pitch,
+                                               dst->pitch * dst->cpp,
                                                dst->bo,
                                                0,
                                                dst->tiling,