diff options
author | Thomas White <taw@bitwiz.org.uk> | 2009-10-18 13:08:47 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2010-02-18 15:39:26 +0100 |
commit | 8e7289d8c5c7520a7ac01b294e5af16f36d919bf (patch) | |
tree | 2df825fd84adf2db081a6d7be33ac3d2944ebbc2 /src/mesa | |
parent | 03aea2f5130b0392e37d7dfbb2d02e8e9c56fdd5 (diff) |
Add missing FLUSH()es in t_dd_dmatmp.h
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/tnl_dd/t_dd_dmatmp.h | 12 |
1 files changed, 11 insertions, 1 deletions
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. |