summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_imm_api.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2001-06-04 16:09:28 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2001-06-04 16:09:28 +0000
commit51b36396ae45f9ee9cec8d612787d038641dc6c8 (patch)
treef172ccf9a8536dfa168eb5c74b0f6f4ab9c946f5 /src/mesa/tnl/t_imm_api.c
parentabd5134965665ad9f7154a08b13edfed15f00135 (diff)
Adaptor code that lets tnl convert compiled (display list) cassettes back
to glVertex() type calls. Allows driver-supplied tnl modules to avoid fallback on glCallList inside begin/end pairs. Still a little buggy...
Diffstat (limited to 'src/mesa/tnl/t_imm_api.c')
-rw-r--r--src/mesa/tnl/t_imm_api.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_imm_api.c b/src/mesa/tnl/t_imm_api.c
index 2a55e0ef63..9c4894ada7 100644
--- a/src/mesa/tnl/t_imm_api.c
+++ b/src/mesa/tnl/t_imm_api.c
@@ -1,4 +1,4 @@
-/* $Id: t_imm_api.c,v 1.14 2001/05/11 15:53:06 keithw Exp $ */
+/* $Id: t_imm_api.c,v 1.15 2001/06/04 16:09:28 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -294,7 +294,9 @@ _tnl_end( GLcontext *ctx )
IM->Flag[count] |= VERT_END;
IM->Primitive[last] |= PRIM_END;
IM->PrimitiveLength[last] = count - last;
- IM->Primitive[count] = PRIM_OUTSIDE_BEGIN_END;
+ IM->Primitive[count] = PRIM_OUTSIDE_BEGIN_END; /* removes PRIM_BEGIN
+ * flag if length == 0
+ */
IM->LastPrimitive = count;
if (IM->FlushElt == FLUSH_ELT_EAGER) {