llvmpipe: Fix type in tri bounding box check.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 9 Oct 2009 16:14:11 +0000 (17:14 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 9 Oct 2009 16:14:11 +0000 (17:14 +0100)
src/gallium/drivers/llvmpipe/lp_rast_tri.c

index 1041cd2..6b5bee4 100644 (file)
@@ -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);