summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-10-18 13:08:47 +0200
committerThomas White <taw@bitwiz.org.uk>2009-10-18 16:02:41 +0200
commit4cc03a2c03a0b366e053547d5c16324c343f5af7 (patch)
treed94828e89847d11919a37f25999300993b15a3db
parent0c4a995684766135ae97da27d67705e60b6c0839 (diff)
Add missing FLUSH()es in t_dd_dmatmp.h
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
-rw-r--r--src/mesa/tnl_dd/t_dd_dmatmp.h12
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 e4b535fb68..3300d9fcdd 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 {
@@ -292,6 +296,8 @@ static void TAG(render_triangles_verts)( GLcontext *ctx,
TAG(emit_verts)( ctx, j, nr, ALLOC_VERTS(nr) );
currentsz = dmasz;
}
+
+ FLUSH();
}
@@ -563,6 +569,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
@@ -635,6 +643,8 @@ static void TAG(render_quads_verts)( GLcontext *ctx,
*/
tmp = EMIT_VERTS(ctx, j + 1, 3, tmp);
}
+
+ FLUSH();
}
else {
/* Vertices won't fit in a single buffer, should never happen.