aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast_setup/ss_tritmp.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2001-01-16 05:29:42 +0000
committerKeith Whitwell <[email protected]>2001-01-16 05:29:42 +0000
commitd43a5943d8952367d9292653800b47a85f905343 (patch)
treea33ce0af1f3396c6921643f4662df2ad719a0a34 /src/mesa/swrast_setup/ss_tritmp.h
parent230928ad5f325614288bc481d7135388c052f3ab (diff)
Fix several conformance problems. Hack solution to line stipple problem.
Diffstat (limited to 'src/mesa/swrast_setup/ss_tritmp.h')
-rw-r--r--src/mesa/swrast_setup/ss_tritmp.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mesa/swrast_setup/ss_tritmp.h b/src/mesa/swrast_setup/ss_tritmp.h
index 936774aba4e..cc0c511c35c 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;