summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2001-12-03 17:19:14 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2001-12-03 17:19:14 +0000
commitbfd2ae6e99535a729d09f110b7c06cf62ad83041 (patch)
tree02a6822f089cb6a36468fcdeac1ac0149a6e68cc /src/mesa
parente6373ba6d7dcb667280d87065cd0bdff6900bdd7 (diff)
correctly reset input after dlist execution
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/tnl/t_imm_dlist.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mesa/tnl/t_imm_dlist.c b/src/mesa/tnl/t_imm_dlist.c
index 4cff6b4f2e..5fa8d8ad0b 100644
--- a/src/mesa/tnl/t_imm_dlist.c
+++ b/src/mesa/tnl/t_imm_dlist.c
@@ -1,4 +1,4 @@
-/* $Id: t_imm_dlist.c,v 1.29 2001/09/14 21:30:31 brianp Exp $ */
+/* $Id: t_imm_dlist.c,v 1.30 2001/12/03 17:19:14 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -425,12 +425,18 @@ _tnl_BeginCallList( GLcontext *ctx, GLuint list )
}
-/* Called at the tail of a CallList. Nothing to do.
+/* Called at the tail of a CallList. Make current immediate aware of
+ * any new to-be-copied vertices.
*/
void
_tnl_EndCallList( GLcontext *ctx )
{
- (void) ctx;
+ GLuint beginstate = 0;
+
+ if (ctx->Driver.CurrentExecPrimitive != PRIM_OUTSIDE_BEGIN_END)
+ beginstate = VERT_BEGIN_0|VERT_BEGIN_1;
+
+ _tnl_reset_exec_input( ctx, IMM_MAX_COPIED_VERTS, beginstate, 0 );
}