summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-10-09 17:14:11 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-10-09 17:14:11 +0100
commit8c80413360855106734068066382be8c3a46a64f (patch)
tree8425a6546f486cc2378cb91926199c97f13b58b9 /src
parentb4924d62c7346da2e0de9ae4f9f23b3fb7fafee8 (diff)
llvmpipe: Fix type in tri bounding box check.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast_tri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri.c b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
index 1041cd2463..6b5bee4af3 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);