summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2008-12-17 22:10:57 -0800
committerEric Anholt <[email protected]>2008-12-19 13:04:29 -0800
commite67350da34c6009edff50c160df27493cb363e1b (patch)
treef921485f039454f6c22370a3889c847af6c2e835 /src/mesa/drivers
parentb9752a2bd615d136369af63ed3d45cc10adf21e7 (diff)
intel: Don't forget the source bitmap size when clipping the size we draw.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel/intel_pixel_bitmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c b/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
index fd2ea7989eb..f6713dbc7ba 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
@@ -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,