summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_context.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2001-06-28 17:34:14 +0000
committerKeith Whitwell <[email protected]>2001-06-28 17:34:14 +0000
commit47a28c0b4d4ca27592e3cbb8e4b17d1cd8f7997d (patch)
tree0fdce5799b53ba8efcb3b30190fa746123cbee3e /src/mesa/tnl/t_context.c
parent206eda8b69ab3c63e9597015189f49d1bda9356f (diff)
restore normal length optimization in dlists
Diffstat (limited to 'src/mesa/tnl/t_context.c')
-rw-r--r--src/mesa/tnl/t_context.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c
index e842bd14224..0acb9f9db20 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;
+ }
+}