diff options
Diffstat (limited to 'src/mesa/tnl/t_context.c')
-rw-r--r-- | src/mesa/tnl/t_context.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index 37b04836632..e842bd14224 100644 --- a/src/mesa/tnl/t_context.c +++ b/src/mesa/tnl/t_context.c @@ -1,4 +1,4 @@ -/* $Id: t_context.c,v 1.18 2001/05/11 08:11:31 keithw Exp $ */ +/* $Id: t_context.c,v 1.19 2001/06/04 16:09:28 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -103,6 +103,7 @@ _tnl_CreateContext( GLcontext *ctx ) tnl->NeedProjCoords = GL_TRUE; + tnl->LoopbackDListCassettes = GL_FALSE; /* Hook our functions into exec and compile dispatch tables. */ @@ -123,6 +124,8 @@ _tnl_CreateContext( GLcontext *ctx ) tnl->Driver.RenderTabElts = _tnl_render_tab_elts; tnl->Driver.RenderTabVerts = _tnl_render_tab_verts; + + return GL_TRUE; } @@ -210,3 +213,12 @@ _tnl_need_projected_coords( GLcontext *ctx, GLboolean mode ) _tnl_InvalidateState( ctx, _NEW_PROJECTION ); } } + +void +_tnl_need_dlist_loopback( GLcontext *ctx, GLboolean mode ) +{ + TNLcontext *tnl = TNL_CONTEXT(ctx); + if (tnl->LoopbackDListCassettes != mode) { + tnl->LoopbackDListCassettes = mode; + } +} |