diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-10-04 17:37:45 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-10-04 17:37:45 +0000 |
commit | f782b8189e718974a40d72ac4f6b8d213ca99e1e (patch) | |
tree | 0a7269316b1d75a69eabab205a93fc38036ce7b2 /src/mesa/swrast_setup/ss_triangle.c | |
parent | f8acbed50d96d35d2a354f1fe7e81594d79a3186 (diff) | |
download | external_mesa3d-f782b8189e718974a40d72ac4f6b8d213ca99e1e.zip external_mesa3d-f782b8189e718974a40d72ac4f6b8d213ca99e1e.tar.gz external_mesa3d-f782b8189e718974a40d72ac4f6b8d213ca99e1e.tar.bz2 |
multiple GL_POINTS can now be rendered together into one fragment span
Diffstat (limited to 'src/mesa/swrast_setup/ss_triangle.c')
-rw-r--r-- | src/mesa/swrast_setup/ss_triangle.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/swrast_setup/ss_triangle.c b/src/mesa/swrast_setup/ss_triangle.c index fa1f3e7..c77bd72 100644 --- a/src/mesa/swrast_setup/ss_triangle.c +++ b/src/mesa/swrast_setup/ss_triangle.c @@ -1,4 +1,4 @@ -/* $Id: ss_triangle.c,v 1.17 2002/10/02 23:24:04 brianp Exp $ */ +/* $Id: ss_triangle.c,v 1.18 2002/10/04 17:37:47 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -139,6 +139,7 @@ static void _swsetup_render_point_tri( GLcontext *ctx, v0->index = i[0]; v1->index = i[1]; } + _swrast_flush(ctx); } #define SS_COLOR(a,b) COPY_CHAN4(a,b) @@ -280,8 +281,6 @@ void _swsetup_choose_trifuncs( GLcontext *ctx ) (ctx->Stencil.Enabled && ctx->Stencil.TestTwoSide)) ind |= SS_UNFILLED_BIT; - ctx->_Facing = 0; - if (ctx->Visual.rgbMode) ind |= SS_RGBA_BIT; @@ -289,4 +288,6 @@ void _swsetup_choose_trifuncs( GLcontext *ctx ) tnl->Driver.Render.Quad = quad_tab[ind]; tnl->Driver.Render.Line = swsetup_line; tnl->Driver.Render.Points = swsetup_points; + + ctx->_Facing = 0; } |