summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2008-04-22 18:11:58 -0400
committerZack Rusin <[email protected]>2008-04-22 18:32:36 -0400
commit500c41b8ba3ad025c69e63a2c74da90674a8037d (patch)
tree6f2cde5e333cdd4c4e47fd7790f8e7f0aefd2008
parent22cbf6a70437dfa12c10600e5a496ea5771cfc56 (diff)
Fix reporting of clipped vertices.
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_post_vs.c5
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];