projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9752a2
)
intel: Don't forget the source bitmap size when clipping the size we draw.
author
Eric Anholt
<eric@anholt.net>
Thu, 18 Dec 2008 06:10:57 +0000
(22:10 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 19 Dec 2008 21:04:29 +0000
(13:04 -0800)
src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
b/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
index fd2ea7989eb7465e861829d6d85c5d278d37041c..f6713dbc7ba4eb134bfec0d9ff5860c9d14d300b 100644
(file)
--- 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,