diff options
author | Keith Whitwell <[email protected]> | 2001-06-04 16:09:28 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2001-06-04 16:09:28 +0000 |
commit | 51b36396ae45f9ee9cec8d612787d038641dc6c8 (patch) | |
tree | f172ccf9a8536dfa168eb5c74b0f6f4ab9c946f5 /src/mesa/tnl/t_imm_api.c | |
parent | abd5134965665ad9f7154a08b13edfed15f00135 (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.c | 6 |
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 2a55e0ef637..9c4894ada74 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) { |