intel: Don't forget the source bitmap size when clipping the size we draw.

This commit is contained in:
Eric Anholt
2008-12-17 22:10:57 -08:00
parent b9752a2bd6
commit e67350da34
@@ -172,6 +172,8 @@ do_blit_bitmap( GLcontext *ctx,
unsigned int num_cliprects;
drm_clip_rect_t *cliprects;
int x_off, y_off;
GLsizei bitmap_width = width;
GLsizei bitmap_height = height;
/* Update draw buffer bounds */
_mesa_update_state(ctx);
@@ -278,7 +280,7 @@ do_blit_bitmap( GLcontext *ctx,
/* May need to adjust this when padding has been introduced in
* sz above:
*/
if (get_bitmap_rect(width, height, unpack,
if (get_bitmap_rect(bitmap_width, bitmap_height, unpack,
bitmap,
srcx + px, srcy + py, w, h,
(GLubyte *)stipple,