summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/common/t_dd_dmatmp.h30
-rw-r--r--src/mesa/drivers/common/t_dd_tritmp.h5
2 files changed, 31 insertions, 4 deletions
diff --git a/src/mesa/drivers/common/t_dd_dmatmp.h b/src/mesa/drivers/common/t_dd_dmatmp.h
index c88c547c945..954ea87e621 100644
--- a/src/mesa/drivers/common/t_dd_dmatmp.h
+++ b/src/mesa/drivers/common/t_dd_dmatmp.h
@@ -1,4 +1,4 @@
-/* $Id: t_dd_dmatmp.h,v 1.7 2001/03/18 00:46:04 keithw Exp $ */
+/* $Id: t_dd_dmatmp.h,v 1.8 2001/04/06 16:26:41 alanh Exp $ */
/*
* Mesa 3-D graphics library
@@ -66,6 +66,10 @@ do { \
} while (0)
#endif
+#ifndef FINISH
+#define FINISH
+#endif
+
/**********************************************************************/
/* Render whole begin/end objects */
/**********************************************************************/
@@ -136,6 +140,9 @@ static void TAG(render_points_verts)( GLcontext *ctx,
EMIT_VERTS( ctx, j, nr );
currentsz = dmasz;
}
+
+ FINISH;
+
} else {
VERT_FALLBACK( ctx, start, count, flags );
}
@@ -168,6 +175,9 @@ static void TAG(render_lines_verts)( GLcontext *ctx,
EMIT_VERTS( ctx, j, nr );
currentsz = dmasz;
}
+
+ FINISH;
+
} else {
VERT_FALLBACK( ctx, start, count, flags );
}
@@ -196,6 +206,9 @@ static void TAG(render_line_strip_verts)( GLcontext *ctx,
EMIT_VERTS( ctx, j, nr );
currentsz = dmasz;
}
+
+ FINISH;
+
} else {
VERT_FALLBACK( ctx, start, count, flags );
}
@@ -238,6 +251,8 @@ static void TAG(render_line_loop_verts)( GLcontext *ctx,
if (start < count - 1 && (flags & PRIM_END))
EMIT_VERTS( ctx, start, 1 );
+ FINISH;
+
} else {
VERT_FALLBACK( ctx, start, count, flags );
}
@@ -269,6 +284,7 @@ static void TAG(render_triangles_verts)( GLcontext *ctx,
EMIT_VERTS( ctx, j, nr );
currentsz = dmasz;
}
+ FINISH;
}
@@ -312,6 +328,9 @@ static void TAG(render_tri_strip_verts)( GLcontext *ctx,
EMIT_VERTS( ctx, j, nr );
currentsz = dmasz;
}
+
+ FINISH;
+
} else {
VERT_FALLBACK( ctx, start, count, flags );
}
@@ -342,6 +361,9 @@ static void TAG(render_tri_fan_verts)( GLcontext *ctx,
EMIT_VERTS( ctx, j, nr - 1 );
currentsz = dmasz;
}
+
+ FINISH;
+
}
else {
/* Could write code to emit these as indexed vertices (for the
@@ -377,6 +399,9 @@ static void TAG(render_poly_verts)( GLcontext *ctx,
EMIT_VERTS( ctx, j, nr - 1 );
currentsz = dmasz;
}
+
+ FINISH;
+
}
else if (HAVE_TRI_FANS && !(ctx->_TriangleCaps & DD_FLATSHADE)) {
TAG(render_tri_fan_verts)( ctx, start, count, flags );
@@ -478,6 +503,9 @@ static void TAG(render_quad_strip_verts)( GLcontext *ctx,
EMIT_VERTS( ctx, j, nr );
currentsz = dmasz;
}
+
+ FINISH;
+
} else {
VERT_FALLBACK( ctx, start, count, flags );
}
diff --git a/src/mesa/drivers/common/t_dd_tritmp.h b/src/mesa/drivers/common/t_dd_tritmp.h
index 6e07d902a6e..963db088265 100644
--- a/src/mesa/drivers/common/t_dd_tritmp.h
+++ b/src/mesa/drivers/common/t_dd_tritmp.h
@@ -1,11 +1,10 @@
-/* $Id: t_dd_tritmp.h,v 1.7 2001/03/13 17:39:56 gareth Exp $ */
+/* $Id: t_dd_tritmp.h,v 1.8 2001/04/06 16:26:41 alanh Exp $ */
/*
* Mesa 3-D graphics library
* Version: 3.5
*
- * Copyright (C) 1999-2001
-Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),