diff options
author | Zack Rusin <[email protected]> | 2008-04-22 18:11:58 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2008-04-22 18:32:36 -0400 |
commit | 500c41b8ba3ad025c69e63a2c74da90674a8037d (patch) | |
tree | 6f2cde5e333cdd4c4e47fd7790f8e7f0aefd2008 /src | |
parent | 22cbf6a70437dfa12c10600e5a496ea5771cfc56 (diff) |
Fix reporting of clipped vertices.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_post_vs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_post_vs.c b/src/gallium/auxiliary/draw/draw_pt_post_vs.c index e5e38fa264f..f98e130ed6a 100644 --- a/src/gallium/auxiliary/draw/draw_pt_post_vs.c +++ b/src/gallium/auxiliary/draw/draw_pt_post_vs.c @@ -94,7 +94,7 @@ static boolean post_vs_cliptest_viewport_gl( struct pt_post_vs *pvs, struct vertex_header *out = vertices; const float *scale = pvs->draw->viewport.scale; const float *trans = pvs->draw->viewport.translate; - boolean clipped = FALSE; + unsigned clipped = 0; unsigned j; if (0) debug_printf("%s\n"); @@ -110,11 +110,10 @@ static boolean post_vs_cliptest_viewport_gl( struct pt_post_vs *pvs, out->clipmask = compute_clipmask_gl(out->clip, pvs->draw->plane, pvs->draw->nr_planes); + clipped += out->clipmask; if (out->clipmask == 0) { - clipped = TRUE; - /* divide by w */ float w = 1.0f / out->data[0][3]; |