From 8c80413360855106734068066382be8c3a46a64f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 9 Oct 2009 17:14:11 +0100 Subject: [PATCH] llvmpipe: Fix type in tri bounding box check. --- src/gallium/drivers/llvmpipe/lp_rast_tri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri.c b/src/gallium/drivers/llvmpipe/lp_rast_tri.c index 1041cd2..6b5bee4 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast_tri.c +++ b/src/gallium/drivers/llvmpipe/lp_rast_tri.c @@ -179,7 +179,7 @@ void lp_rast_triangle( struct lp_rasterizer *rast, /* Clamp to tile dimensions: */ - int minx = MAX2(tri->maxx, rast->x); + int minx = MAX2(tri->minx, rast->x); int miny = MAX2(tri->miny, rast->y); int maxx = MIN2(tri->maxx, rast->x + TILE_SIZE); int maxy = MIN2(tri->maxy, rast->y + TILE_SIZE); -- 2.7.4