From d43a5943d8952367d9292653800b47a85f905343 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 16 Jan 2001 05:29:42 +0000 Subject: Fix several conformance problems. Hack solution to line stipple problem. --- src/mesa/swrast_setup/ss_tritmp.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/mesa/swrast_setup/ss_tritmp.h') diff --git a/src/mesa/swrast_setup/ss_tritmp.h b/src/mesa/swrast_setup/ss_tritmp.h index 936774aba4..cc0c511c35 100644 --- a/src/mesa/swrast_setup/ss_tritmp.h +++ b/src/mesa/swrast_setup/ss_tritmp.h @@ -99,25 +99,19 @@ static void TAG(triangle)(GLcontext *ctx, GLuint e0, GLuint e1, GLuint e2 ) } if (mode == GL_POINT) { - GLubyte *ef = VB->EdgeFlag; if ((IND & SS_OFFSET_BIT) && ctx->Polygon.OffsetPoint) { v[0]->win[2] += offset; v[1]->win[2] += offset; v[2]->win[2] += offset; } - if (ef[e0]) _swrast_Point( ctx, v[0] ); - if (ef[e1]) _swrast_Point( ctx, v[1] ); - if (ef[e2]) _swrast_Point( ctx, v[2] ); + _swsetup_render_point_tri( ctx, e0, e1, e2 ); } else if (mode == GL_LINE) { - GLubyte *ef = VB->EdgeFlag; if ((IND & SS_OFFSET_BIT) && ctx->Polygon.OffsetLine) { v[0]->win[2] += offset; v[1]->win[2] += offset; v[2]->win[2] += offset; } - if (ef[e0]) _swrast_Line( ctx, v[0], v[1] ); - if (ef[e1]) _swrast_Line( ctx, v[1], v[2] ); - if (ef[e2]) _swrast_Line( ctx, v[2], v[0] ); + _swsetup_render_line_tri( ctx, e0, e1, e2 ); } else { if ((IND & SS_OFFSET_BIT) && ctx->Polygon.OffsetFill) { v[0]->win[2] += offset; -- cgit v1.2.3