From 47a28c0b4d4ca27592e3cbb8e4b17d1cd8f7997d Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 28 Jun 2001 17:34:14 +0000 Subject: restore normal length optimization in dlists --- src/mesa/tnl/t_context.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/mesa/tnl/t_context.c') diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index e842bd1422..0acb9f9db2 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.19 2001/06/04 16:09:28 keithw Exp $ */ +/* $Id: t_context.c,v 1.20 2001/06/28 17:34:14 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -104,6 +104,7 @@ _tnl_CreateContext( GLcontext *ctx ) tnl->NeedProjCoords = GL_TRUE; tnl->LoopbackDListCassettes = GL_FALSE; + tnl->CalcDListNormalLengths = GL_TRUE; /* Hook our functions into exec and compile dispatch tables. */ @@ -222,3 +223,12 @@ _tnl_need_dlist_loopback( GLcontext *ctx, GLboolean mode ) tnl->LoopbackDListCassettes = mode; } } + +void +_tnl_need_dlist_norm_lengths( GLcontext *ctx, GLboolean mode ) +{ + TNLcontext *tnl = TNL_CONTEXT(ctx); + if (tnl->CalcDListNormalLengths != mode) { + tnl->CalcDListNormalLengths = mode; + } +} -- cgit v1.2.3