summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-12-07 18:18:37 -0700
committerBrian Paul <[email protected]>2009-12-07 18:18:37 -0700
commit73e13c33fd0a9b8574d00d01d301b9d4f88d4051 (patch)
treefb610924908eda9e5a7fb697ef2dbf22047aa164 /src/gallium/drivers/llvmpipe
parentaab1ceceecbd6449eebce7f5f5b356b1a51552e7 (diff)
llvmpipe: remove some left-over debug code
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast.c9
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 99f7108b423..01685b79d85 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);