From 8e7289d8c5c7520a7ac01b294e5af16f36d919bf Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 18 Oct 2009 13:08:47 +0200 Subject: Add missing FLUSH()es in t_dd_dmatmp.h Signed-off-by: Thomas White --- src/mesa/tnl_dd/t_dd_dmatmp.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/mesa/tnl_dd/t_dd_dmatmp.h b/src/mesa/tnl_dd/t_dd_dmatmp.h index 2424204b88..e13dbf5c7f 100644 --- a/src/mesa/tnl_dd/t_dd_dmatmp.h +++ b/src/mesa/tnl_dd/t_dd_dmatmp.h @@ -127,6 +127,8 @@ static void TAG(render_points_verts)( GLcontext *ctx, currentsz = dmasz; } + FLUSH(); + } else { fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__); return; @@ -162,6 +164,8 @@ static void TAG(render_lines_verts)( GLcontext *ctx, currentsz = dmasz; } + FLUSH(); + } else { fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__); return; @@ -191,7 +195,7 @@ static void TAG(render_line_strip_verts)( GLcontext *ctx, TAG(emit_verts)( ctx, j, nr, ALLOC_VERTS(nr) ); currentsz = dmasz; } - + FLUSH(); } else { @@ -294,6 +298,8 @@ static void TAG(render_triangles_verts)( GLcontext *ctx, TAG(emit_verts)( ctx, j, nr, ALLOC_VERTS(nr) ); currentsz = dmasz; } + + FLUSH(); } @@ -567,6 +573,8 @@ static void TAG(render_quads_verts)( GLcontext *ctx, TAG(emit_verts)( ctx, j, nr, ALLOC_VERTS(nr) ); currentsz = dmasz; } + + FLUSH(); } else if (HAVE_ELTS) { /* Hardware doesn't have a quad primitive type -- try to @@ -640,6 +648,8 @@ static void TAG(render_quads_verts)( GLcontext *ctx, tmp = EMIT_VERTS(ctx, j + 1, 3, tmp); (void) tmp; } + + FLUSH(); } else { /* Vertices won't fit in a single buffer, should never happen. -- cgit v1.2.3