summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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.