From 3fd01320f1ce3b78584c1fec9b1d6805e8ee6786 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Sun, 14 Jan 2001 06:14:21 +0000 Subject: Fixed conform feedback and drawelements tests. Use correct pv when rasterizing unfilled polys. --- src/mesa/swrast_setup/ss_triangle.c | 4 ++-- src/mesa/swrast_setup/ss_vbtmp.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/swrast_setup') diff --git a/src/mesa/swrast_setup/ss_triangle.c b/src/mesa/swrast_setup/ss_triangle.c index 5fd5cd0f57..73a19ad38a 100644 --- a/src/mesa/swrast_setup/ss_triangle.c +++ b/src/mesa/swrast_setup/ss_triangle.c @@ -144,11 +144,11 @@ static void swsetup_points( GLcontext *ctx, GLuint first, GLuint last ) int i; if (VB->Elts) { - for(i=first;i<=last;i++) + for(i=first;iClipMask[VB->Elts[i]]==0) _swrast_Point( ctx, &verts[VB->Elts[i]] ); } else { - for(i=first;i<=last;i++) + for(i=first;iClipMask[i]==0) _swrast_Point( ctx, &verts[i] ); } diff --git a/src/mesa/swrast_setup/ss_vbtmp.h b/src/mesa/swrast_setup/ss_vbtmp.h index f5a4c449e7..15d51a41df 100644 --- a/src/mesa/swrast_setup/ss_vbtmp.h +++ b/src/mesa/swrast_setup/ss_vbtmp.h @@ -110,7 +110,7 @@ static void TAG(rs)(GLcontext *ctx, GLuint start, GLuint end, GLuint newinputs ) if (IND & MULTITEX) { GLuint u; for (u = 0 ; u < maxtex ; u++) - if (tc[u]) + if (tc[u]) COPY_CLEAN_4V( v->texcoord[u], tsz[u], tc[u][i] ); } -- cgit v1.2.3