diff options
author | Brian Paul <brianp@vmware.com> | 2009-12-07 18:18:37 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-12-07 18:18:37 -0700 |
commit | 73e13c33fd0a9b8574d00d01d301b9d4f88d4051 (patch) | |
tree | fb610924908eda9e5a7fb697ef2dbf22047aa164 /src/gallium | |
parent | aab1ceceecbd6449eebce7f5f5b356b1a51552e7 (diff) |
llvmpipe: remove some left-over debug code
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c index 99f7108b42..01685b79d8 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.c +++ b/src/gallium/drivers/llvmpipe/lp_rast.c @@ -402,12 +402,9 @@ static void lp_rast_store_color( struct lp_rasterizer *rast, if (x + w > rast->width) w -= x + w - rast->width; - if (y + h > rast->height) { - int h2; - h2 = h - (y + h - rast->height); - assert(h2 <= TILE_SIZE); - h = h2; - } + if (y + h > rast->height) + h -= y + h - rast->height; + assert(w >= 0); assert(h >= 0); assert(w <= TILE_SIZE); |